Answers for "setting width of jqgrid after loading"

1

set width of jqgrid

$('#gridId').jqGrid('setGridWidth', '800');
Posted by: Guest on June-07-2021
1

set width of jqgrid

var DataGrid = $('#gridId');

 //sets the grid size initially
 DataGrid.jqGrid('setGridWidth', parseInt($(window).width()) - 20);    

 //handles the grid resize on window resize
 $(window).resize(function () { 
       DataGrid.jqGrid('setGridWidth', parseInt($(window).width()) - 20); 
 });
Posted by: Guest on June-07-2021

Code answers related to "setting width of jqgrid after loading"

Browse Popular Code Answers by Language