jqGrid: Restore FilterToolBar chosen values after destroyFilterToolBar -


i`m trying implement dynamic content of filter dropdowns, in beforerequest request analyze filters value, prepare dropdown values , call updatedropdownvalues:

var updatedropdownvalues = function(dropdownvalues){     $("#securityjqgrid").jqgrid("destroyfiltertoolbar");     for(var columnname in dropdownvalues) {         $("#securityjqgrid").jqgrid("setcolprop", columnname, {             searchoptions: {value: dropdownvalues[columnname]}         });     }     $("#securityjqgrid").jqgrid('filtertoolbar', {stringresult: true});     var postdata = jquery($("#securityjqgrid")).jqgrid("getgridparam", "postdata");     postdata.filters = lastfilters; } 

the problem after filtertoolbar creation doesn`t restore value of previous filtering. if choose value dropdown filter data new value instead of combination of 2 values - new 1 , previous. there way restore filtertoolbar state?


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -