如何在 slickgrid 中的多个网格之间交换?

发布于 2024-09-08 01:28:59 字数 172 浏览 3 评论 0原文

我想创建多个网格并使用下拉菜单在它们之间切换。它们占据相同的屏幕空间,但一次只能看到一个。我尝试使用不显示任何 CSS 类来实现这一点,然后使用下拉菜单在所需的类上调用 jquery 的 show 方法。但是,网格的垂直滚动条混乱并且没有显示数据行。

您可以使用 slickgrid 提供的基本示例轻松复制此内容。

I would like to create multiple grids and switch between them using a dropdown. They occupy the same screen real estate but only one is visible at a time. I have tried to implement this using a CSS class with display none, then using the dropdown to call jquery's show method on the desired one. However, the grid's vertical scrollbar is messed up and no data rows are shown.

You can duplicate this easily using the basic example provided with slickgrid.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

奢华的一滴泪 2024-09-15 01:28:59

尝试通过设置“visibility:hidden”而不是“display:none”来隐藏其他网格。或者,在显示网格时延迟初始化网格。

Try hiding the other grids by setting "visibility:hidden" and not "display:none". Alternatively, initialize the grid lazily when it is displayed.

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