I have created a Dojo Grid that returns results from a .Net WS based on search criteria from the browser. The grid works fine the first it is populated, but if I make another search attempt. It throws the following error
Tried to register widget with id==grid but that id is already registered
I understand what the error means, it means that the ID has already been built and cannot be built again, but I have no idea how to fix it. Here is my JS Code
var grid = new dojox.grid.DataGrid({ autoWidth: "true", structure: gridLayout, store: store, clientSort: true }, "grid");
The HTML
What do I need to to the last property of the grid (ie the "grid" part) to make this error go away. Thanks in advance for any help.