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