slickgrid

how to disable virtual scrolling in slickgrid?


as title said, I want to capture all html element to generate a snapshot,but slickgrid use virtual scrolling, I got only several rows in viewport, when I scroll down, it shows blank

I need get all row dom to generate static html


Solution

  • I previously wrote in the comment that you cannot disable virtual scrolling, however I was wrong since I forgot that you can actually disable it by using autoHeight: true, see Example 11 autoHeight

    However, there are big limitations, or at least important notes, to know about:

    So can you disable virtual scrolling? The answer is Yes with autoHeight but be aware of the consequences. If you have less than a thousand rows then that might be acceptable, however with over a thousand rows it's probably better to keep the virtual scrolling enabled.