Reputation: 5298
Can I remove the verticl scrollbar on jqgrid, as I want to display all the rows without scrolling down. Am using:
$("#grid").jqGrid({
colModel:...
shrinkToFit: false,
height:auto
})
The problem I have is whenever I have one or two rows, the grid gets too small, and gets difficult to scroll properly. I need horizontal scrollbar though
Thanks
Upvotes: 0
Views: 1513
Reputation: 221997
a) $.jgrid.search.caption = "My Search title";
do it.
b) I don't understand your question, so I am unable to answer it.
c) You can find the answer in here.
UPDATED: You wrote new question instead of the old one. So the answer on the new question:
height:"100%"
or height:"auto"
and not height:auto
, which is wrongshrinkToFit: false
. It follows that scroll bars always exist. I suggested the workaround (see here). I hope, that Tony (the developer of jqGrid) will fix the bug in the next jqGrid release. So you has some options now 1) wait for the fix 2) use developer (uncompressed) version of jqGrid and make the described fix (one line only) yourself 3) set grid width explicitly, so that scroll bar will not exist.If all this will help you not you should post full code of the jqGrid with the corresponding test data (it is no problem with two rows of data), so that other people could reproduce your problem.
Upvotes: 1