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!