Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DavidO on Jun 24, 2008 16:19
open dhtmlx forum
TreeGrid, how to add id='0' row

I'm using TreeGrid to represent a directory tree using PHP to build the XML.

Root would be represented by rows:parent=0 but creating row:id=0 returns a duplicate id error.

How can I display the root by default as the only row on initialization?
Answer posted by Support on Jun 25, 2008 01:52
The problem caused by using id:0 , 0 already reserved for virtual root item, just use any other ID value.