JqGrid vertical scrollbar

Is it possible for jqGrid to insert a vertical scrollbar instead of increasing its height as it requests new lines from the pager?

My current code is as follows:

$("#grid").jqGrid({
url:'/someUrl',

datatype:"json",
mtype:'GET',
shrinkToFit:true,
forceFit:true,
autowidth:true,
altRows:true,
cellEdit:true,
altclass:'altRowClass',
multiselect:true,
rowNum:15,
height:300,
rowList:[15, 50, 100, 1000],    
rowNum:15    

});
+5
source share
3 answers

If I understand your question correctly, you can add CSS as

.ui-jqgrid .ui-jqgrid-bdiv { overflow-y: scroll }

to force the vertical scrollbar to appear in the grid.

+11
source

to try

 scrollerbar:true
 height:"200"
+3
source

This did the trick:

.ui-jqgrid-bdiv{
    max-height: 340px;
}
+2
source

All Articles