I have a situation where I am creating a jqxGrid on a tab (bootstrap tab). The tab that contains the grid is initially hidden. When the user clicks the tab, the grid appears. This all works fine.
But, if the user never clicks the tab, and the grid never renders, the call to $(element).jqxGrid(‘destroy’) throws an exception. Debugging it, it looks like it is when it tries to call columnsheader.remove(), because columnsheader is undefined.
Need a couple of additional ‘if’ statements within destroy to make sure undefined variables are not used this way and avoid the exceptions.
This is using version 3.6.0