Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by scott on Feb 23, 2009 08:33
open dhtmlx forum
trees, duplicate id's

Hi

I have a tree where i accidentally assigned a node and a child with the same id. The id was "2060" and when i did an alert i got an id of "2060_1235401908098". Did dhtmlx detect the duplicate and generate the extra characters?

Regards
Scott
Answer posted by Support on Feb 24, 2009 02:14
The tree can't work if IDs not unique, so if during item adding operation, tree detects that ID is not unique it add random elements ( timestamp ) to it.
While above behavior solves some simple scenarios , it strongly recommended not to use non-unique IDs