Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Binod Pant on Mar 26, 2008 14:06
open dhtmlx forum
DHTMLXTreeGrid: Problem loading sub rows using the xmlKids option

I almost got the sub row feature in DHTMLXTreeGrid to work, but I have a problem.

I get a weird error message like "Error: Duplicate ID" when I click on the node to expand the sub rows. I do get the sub row, but some columns are not rendered properly, and the sub row is not placed appropriately either. This is in IE. firefox also complains with some other error messages like "this.rowsCol[start + i].parentNode has no properties"

Attached are my parent (test.xml) and child (child.xml) xmls and the test html (sample.html) file I used.

Can you help me with what the problem might be?

Thanks,

Binod

Answer posted by Support on Mar 27, 2008 05:14
>>I get a weird error message like "Error: Duplicate ID" when I click on the node to expand the sub rows.
This message occurs if  you are using not uniques ID in you treeGrid structure ( ID must be unique for all levels in grid )
Please be sure that each row element in XML has unique ID

>>Attached are my parent (test.xml) and child (child.xml) xmls and the test html (sample.html) file I used.
There are no attachments related to this post. If you have some problems with attaching files through KB you can send them directly to support@dhtmlx.com
Answer posted by Binod Pant on Mar 27, 2008 05:35

You are right. I added the ids to each row, and now it works.

Thanks