I am attempting to update the grid while keeping the same filtered state (via #text_filter, #select_filter, etc):
mygrid.filterBy(0);
mygrid._srowsCol=mygrid._f_rowsBuffer=mygrid._srowsBuf=null;
mygrid.updateFromXML(gridQString);
mygrid.filterByAll();
The result is a JS error: this.rowsBuffer[this.getRowIndex(id)] is undefined
The result is a JS error: this.rowsBuffer[this.getRowIndex(id)] is undefined
To remove all rows from the grid and load new better to use mygrid.clearAll(header) where header - header - (boolean) enable/disable cleaning header.
Actually updateFromXML() method doesn’t require all rows to be cleared because of method just refresh grid’s value.
updateFromXML(url, insert_new, del_missed, afterCall) has parameters:
* insert_new - insert new items
* del_missed - delete missed rows
* afterCall - function, will be executed after refresh completted
>mygrid.clearAll(header) where header - header - (boolean) enable/disable cleaning header
I’m confused by this statement. Can you elaborate with sample usage?
Obviously I am attempting to refresh the grid without having to reload the entire grid or clear it of its current state.
I have a button with this single command:
mygrid.updateFromXML(gridQString)
The grid refreshes without error in FireFox, Chrome and Safari.
However, it does not work in IE6, IE7 or IE8 and displays this error::
Message: Object doesn’t support this property or method
Line: 638
Char: 32
Code: 0
URI: …/dhtmlxgrid.js
Please send us example including files which you are using to initialize grid where we reproduce this issue.