Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqGrid vertical scrollbar

Tags:

jqgrid

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    

});
like image 829
Fred Campos Avatar asked Jan 24 '13 13:01

Fred Campos


3 Answers

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.

like image 145
Oleg Avatar answered Nov 18 '22 22:11

Oleg


try

 scrollerbar:true
 height:"200"
like image 28
Rachel Gallen Avatar answered Nov 18 '22 23:11

Rachel Gallen


This did the trick:

.ui-jqgrid-bdiv{
    max-height: 340px;
}
like image 2
Fred Campos Avatar answered Nov 18 '22 23:11

Fred Campos