Reputation: 2113
I'm using jqGrid v4.5.2 (the latest at time of writing), with jQuery 1.9.1. The jqGrid method GridUnload doesn't appear to work. It worked in v3.8.1 (see this example from another thread about jqGrid GridUnload), but using that exact same code with the latest jqGrid, it doesn't (even using jQuery 1.4.4 which is what was used in that example).
FireFox's error console reports "No such method: GridUnload". Which implies the method has been removed from the later jqGrid, but there's no mention of that in the jqGrid release notes here.
I can't revert back to earlier jqGrid versions without also reverting jquery to pre 1.9.x, which breaks the functionality of other parts of my code.
Any ideas if GridUnload has been removed from the latest jqGrid, or replaced by some other method?
Upvotes: 1
Views: 3350
Reputation: 31
Please use the method below for unloadGrid.
$.jgrid.gridUnload("#ctrl_editor_table");
ctrl_editor_table is the ID of you grid table. This will work in jqGrid 4.0 and above versions.
Upvotes: 2
Reputation: 2113
Problem was as I described in the comments to the question: I appeared not to have download jqGrid with the Additional Methods included, which include GridUnload and GridDelete. Having downloaded a copy with those included, it now works.
Upvotes: 0