开发者

jqgrid changing defaults

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


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:

  • you shoud use height:"100%" or height:"auto" and not height:auto, which is wrong
  • jqGrid has currently a bug in calculation of the grid width in case of shrinkToFit: 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜