jquery - Triggering resize of jqGrid after user shows/hides columns -


in jqgrid, after users chooses remove column(s), grid's width becomes smaller. therefore, think appropriate trigger resize @ point using $("#mygrid").trigger("resize"). however, to jqgrid event should attach this?

i tried triggering resize manually on firebug console after using column chooser , worked well.

i tried recommendations in this question without results.

i solved own problem:

     $("#mygrid").jqgrid("columnchooser", {         done: function() {           $("#mygrid").trigger("resize");         }       }); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -