Home › Forums › Guriddo jqGrid JS › Help › editoptions dynamicly load from database
How to dynamicly load 'editoptions'(select field) with data from database within Column MOdel?
Greetings
Majkel
Hello,
One possible solution is to use userdata array and setColProp method combined with loadComplete event.
Regards
Tony
Thanx
Could you write an example?
This cuestions is the most asked in the forum.
Thanks for all.
I've added the following to jqgrid
jQuery(“#grid_table”).jqGrid({
….
userdata: 'userData',
PS.
We can test part of code and uncoment the following code
It doesn't work so any ideas what is wrong? I
What does not work? How look your data. Remember the last item should not end with ; – this will break the select. To make a test just put a string and see what is it –
Data from serwer is presented in post at 19:59 08/02/2009 in this topic:
“userData”:
OK it works.I made something like this:
…
userdata: 'userdata',
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS