I am using updateFromXML after adding new new items to a database via a form and it works correctly. I use another form to update the records and when I calll treeGrid.updateFromXML(“userxml.aspx”), the treeGrid does not update. The update should remove the child from one parent to the new parent (see below).
Before Change:
- User Group
updateFromXML(url, insert_new, del_missed, afterCall) method has parameters:
url - new url
insert_new - insert new items (false by default)
del_missed - delete missed rows (false by default)
afterCall - function, will be executed after refresh completted (true by default)
So to update treeGrid and delete missed rows your code should looks like that:
treeGrid.updateFromXML(“userxml.aspx”,true,true)