I have an application that can have multiple grids on the screen at any one time. One of which is within a CSS popup.
None of the above is actually relevant (I don’t think). So all of my grids work absolutely fine apart from the one within my popup (not a new window). When I try to remove the grid using $("#some_grid").jqxGrid('destroy');
, I get weird errors.
If I remove it using the ESC key then I get:
Uncaught TypeError: Cannot read property ‘css’ of undefined
Whereas, if I remove it by pressing one of my buttons, I get the error:
Uncaught TypeError: Cannot read property ‘coord’ of undefined
Can you think of anything that could be causing this? The grid still gets removed but I can still see that some resources and div
‘s are left behind within the DOM…