EasyUI Forum
May 17, 2024, 11:21:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Numbering the id of a treeview  (Read 5757 times)
forum6691
Newbie
*
Posts: 39


View Profile
« 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
Logged
forum6691
Newbie
*
Posts: 39


View Profile
« Reply #1 on: April 27, 2014, 12:49:53 PM »

Is someone has an idea for my problem for numbering the treeview elements ?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #2 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!