Use slickgrid inside a bootstrap modal

我与影子孤独终老i 提交于 2019-12-06 05:33:01

Try manually init-ing the grid after the modal finishes loading. You can do this using explicitInitialization: true as explained in http://mleibman.github.com/SlickGrid/examples/example-explicit-initialization.html

P.S. - adding this as an answer, so you could accept this if you wish.


Edit by KevinB:

To add, you can bind to the modal's shown event to perform the init with proper timing.

$("#modal").on("shown",function(){
    grid.init();
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!