The docs for the kendoGrid destroy() function are very brief:
Is there any other code required to get his working? Setting it up in exactly the same way I always receive the error:
I have confirmed rGrid is available by adding a hideColumn() call to it before trying destroy, which works correctly.
Any help appreciated.
destroy
Prepares the Grid for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
var grid = $("#grid").data("kendoGrid");
// detach events
grid.destroy();
Is there any other code required to get his working? Setting it up in exactly the same way I always receive the error:
TypeError: rGrid.destroy is not a function
I have confirmed rGrid is available by adding a hideColumn() call to it before trying destroy, which works correctly.
Any help appreciated.