how to remove/disable column resize in jqGrid

jqGrid columns are set to resizable by default. Bit if you want to fix there size and want to disable or remove the resizable property then you can easily specify it in colmodel API. The colModel property defines the individual grid columns as an array of properties. This is the most important part of the jqGrid, and you can set the resizable variable of this array to false in order to disable the column resize.

jqGrid configuration option to remove column resize

var jqGridObj = $('#tableIdForGrid');

jqGridObj.jqGrid({  
...,
"colModel" : [
{
"name":"description",
"index":"description",
"align":"left",
"sorttype":"text",
"width" : 50,
"resizable": false,
}
],
...,
});



Other Imp variables of comModel API > click here

0 comments:

Post a Comment

Ask queries, report bugs, send enhancements and tips that you have experienced.

SHARE