Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
Resizing Grid with Row Virtualization
posted

Hello,

I'm having some trouble when resizing a grid that has 'rowVirtualization' set to true. As I understand it, simply setting the height/width of the grid after it has been created will not update the dimensions when using virtualization. Therefore, I am forced to destroy and recreate the grid each time the window is resized. However, when taking this route, I am (very rarely) encountering an error when using the mouse wheel to scroll through the grid contents. The error states that igGrid is attempting to call the "dataView()" method of a null object (i.e. data source).

Please reference the following jsFiddle as a demonstration of the error:  http://jsfiddle.net/kV2Z6/1/

In order to quickly reproduce the problem, after the page loads, simply open and close the browser's console quickly (e.g., in Chrome press F12 twice quickly). Afterwards, attempt to scroll through the table's contents with the mouse wheel and you will receive the error.

Can you explain why I am receiving this error and any way to prevent it from occurring?

Thanks for your help!

Parents
No Data
Reply
  • 3595
    Suggested Answer
    posted

    Hello Ruwan,

    Thank you for posting in our community.

    I tested this scenario and as a result inconsistent behavior was observed. The error you have reported was shown in some of the tests but in other tests it was not present. The issue occurrences might be dependent on the browser performance, cashing and browser operations timing.

    In order to investigate further it’s needed a sample which presents consistent behavior.

    Looking forwards to hearing from you.  

     

Children