jqgrid的垂直滚动条没有出现在ipad中

发布于 2024-11-27 21:51:31 字数 224 浏览 1 评论 0原文

我在我的应用程序中使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏日落 2024-12-04 21:51:31

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.

青衫儰鉨ミ守葔 2024-12-04 21:51:31

您还可以设置 jqgrid 根据行自动调整高度。
尝试高度:“自动”。

请参阅 jqgrid 文档 了解更多信息。

You can also set jqgrid to auto-adjust height based on rows.
Try height: 'auto'.

Refer jqgrid docs for more.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文