Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sandaly KEITA on Nov 21, 2008 08:00
open dhtmlx forum
dhtmlxgrid - Add multiple node

Hello,

I want to insert node to my tree. I used tree.insertNewChild and tree.setItemStyle to do this. But the problem is that it takes too much time because I insert 300 nodes. It's better with Firefox than IE.

I want to know if it's possible to add mutiple insert in a tree with a XML file for example

Answer posted by Support on Nov 21, 2008 08:10
You can form necessary xml and use loadXMLString to load data in grid 

grid.loadXMLString("<tree id='PID'><item id='some' text='some'>...</tree>");

PID - ID of item to which child items need to be added