jqgrid的垂直滚动条没有出现在ipad中
我在我的应用程序中使用 jqgrid 进行分页。在 Mozilla、IE、chrome、safari 中,它显示垂直滚动条以查看网格中的所有行。
但在 iPad 上它不起作用。在ipad中它显示了几行(不显示滚动条来查看剩余的行)
我在网上搜索了一些人建议使用jqtouch。我试过这仅适用于 div 不适用于网格。
任何人都可以帮助我在 ipad 中显示 jqgrid 的垂直滚动条。
I am using jqgrid in my application with pagination. In Mozilla,IE,chrome,safari it's showing vertical scroll bar to see all the rows in the girid.
But in Ipad it's not working. In ipad it's showing few rows (not showing the scroll bar to see the remaining rows)
I searched in the net some people suggest use the jqtouch. I tried that's working for div only not for grid.
Any one can help me to show the vertical scroll bar in ipad for jqgrid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
iPad 的 Mobile Safari 浏览器不会呈现滚动条,如下所示:jqGrid - 滚动条丢失Safari Mobile
由于您使用分页,因此您可以通过限制页面上的行数来解决此问题。例如,如果 iPad 网格一次只能显示 5 行,那么如果用户使用 Mobile Safari 浏览,则将每个页面限制为 5 行。这样就不需要滚动条了。
The iPad's Mobile Safari browser does not render scroll bars, as noted here: jqGrid - Scrollbar missing on Safari Mobile
Since you are using pagination, you might be able to work around this problem by limiting the number of rows on a page. For example, if the iPad grid can only show 5 rows at a time, then limit each page to 5 rows if the user is browsing with Mobile Safari. That way there is no need for a scroll bar.
您还可以设置 jqgrid 根据行自动调整高度。
尝试高度:“自动”。
请参阅 jqgrid 文档 了解更多信息。
You can also set jqgrid to auto-adjust height based on rows.
Try height: 'auto'.
Refer jqgrid docs for more.