Is it possible to have a jqGrid to insert a vertical scrollbar instead of increasing its height as new rows are requested 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
});
If I correct understand your question you can add CSS like
.ui-jqgrid .ui-jqgrid-bdiv { overflow-y: scroll }
to force displaying of the vertical scrollbar in the grid.
try
scrollerbar:true
height:"200"
This did the trick:
.ui-jqgrid-bdiv{
max-height: 340px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With