References : How to hide a jqgrid column dynamically





Source



...

colModel: [

...

     { name: 'COL_1', ... },

     { name: 'COL_2', ... },

     { name: 'COL_3', ... },

     ...

],

...



$("#tbl_itemList").jqGrid('hideCol', ["COL_1", "COL_2"]);

$("#tbl_itemList").jqGrid('showCol', ["COL_3"]);




반응형

+ Recent posts