In the editOptions for select dropdown we pass some static values after the instantiate of the grid_data. Everything works fine until we choose editing. As the data remains constant and static.
All the dropdown remains same. But this should not happen, it has to load the appropriate data to the rows which should be dynamic.
var data = {
"id" : "cityGrid",
"grid_data" : response,
"colNames" : ['City Name','Select State','local'],
"colModel": [
{"name":'cityName',"index":'cityName', "width":150,"editable": true,"editoptions":{"size":"20","maxlength":"30"}},
{"name":'selectState',"index":'selectState',"width":90,"editable": true,"edittype":"select","editoptions":{"value":"TN:Tamilnadu;AP:Andhrapradesh;MP:MAdhyapradesh",
"class":"chosen-select","width":200,"custom":true,"custom_func":util.applyChosen}},
{"name":'local',"index":'local', "width":70, "editable": true,"edittype":"checkbox","editoptions": {"value":"Yes:No"},"unformat": "aceSwitch"}
],
"editurl": "/dummy.html",
"caption": "City Information"
};
"editoptions":{"value":"TN:Tamilnadu;AP:Andhrapradesh;MP:MAdhyapradesh"
I also came across dataUrl passing after few search results. But it was not upto the mark as i need to send a param with it which is not possible there.
And even thought of taking the value of one particular row data and make it select on top and load rest of with static as i use the chosen form of data which triggers on keypress and my problem would get solve. The problem here is with editing with two types one with single row and multirow.
This is a phase where i got struck. Has anybody solved this problem. Any new version of jQgrid has a answer to this problem?
Thanks in advance