How to refresh the tree grid, when I delete, insert, or change the order of the list in the server-side database.
I hope when i refresh the grid, the folder state(expand or close) does not change.
I used loadXML(…). It can reresh the data, but close all the tree nodes, not rember any previous state.
I used updateFromXML(…), but it seems that not fetching data from database, but the bufferred xml.
set variable(an array, initially empty) to remember the states of each row.
a function when need to refresh the grid, save the current row state to above-mentioned array.
attach XLE event to the grid. If the variable is empty, do nothing, or you can expand the first level of parent, anything you want. If the variable is not empty, you should openItem or closeItem according to the variable.