Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Sep 24, 2008 01:45
open dhtmlx forum
Restore items default settings - dhtmlxTree

Is there a method to restore the items default setting (form the xml)?
After changing the items visual settings using the setItemImage(), setItemStyle() methods I want to restore the default.

Answer posted by Support on Sep 29, 2008 16:46
You can try to use smartRefreshItem|smartRefreshBranch, which will load new XML data and update labels and images of existing items from it. Such command will not change styles assigned to items. 
The only way to reset styles - full data reloading ( tree.deleteChildItems(0); tree.loadXML(url) )