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
Post a Comment