开发者

How can I swap between multiple grids in slickgrid?

开发者 https://www.devze.com 2023-01-06 08:48 出处:网络
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 cl

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, t开发者_StackOverflowhen 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.


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

0

精彩评论

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

关注公众号