I have a grid made using ExtJS and I render it in a div, which I define when an update is requested. I just βemptyβ the div using jQuery and then re-create the grid creating new objects every time:
var grid = new xg.GridPanel({ store: store, columns: [ ... renderTo: 'db-grid'
And then, to remove the div, I use this:
$("#db-grid").empty();
This works well as 3 or 4 updates, and then it seems to load very slowly, I think this is due to the fact that it creates all these objects again, the only thing that changes every time is the "store". I get this through an AJAX request, is there a way to update it without creating a new grid every time?
I am new to ExtJS and I am going a bit here from JQuery, so I use the "empty ()" function from JQuery, if you know an alternative to ExtJS, I would be happy to use this instead.
Thanks!
source share