EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: forum6691 on March 23, 2014, 09:28:18 AM



Title: Numbering the id of a treeview
Post by: forum6691 on March 23, 2014, 09:28:18 AM
I have a problem to understand the numbering of the id folder in a treeview.

I explain: My treeview must be display data from a database. I can gave an unlimited first level folders and unlimited sublevels folders and again for subsublevel folders,...
If I use 1,2,3,4,... to number the folders, can I use 1,2,3,4,.. to number the sublevel folders and again for subsublevel ? Or the number for id must be all different ?

Thanks.
Cyril


Title: Re: Numbering the id of a treeview
Post by: forum6691 on April 27, 2014, 12:49:53 PM
Is someone has an idea for my problem for numbering the treeview elements ?


Title: Re: Numbering the id of a treeview
Post by: stworthy on April 27, 2014, 05:09:16 PM
There are no constraints at the 'id' value of tree nodes. But if you use duplicate 'id' node you can't call 'find' method to get the correct node.