EasyUI Forum
September 16, 2025, 11:53:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Understanding data structure for treegrid  (Read 11445 times)
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« on: July 24, 2015, 02:36:10 AM »

Can you explain different hierarchical  data structures for a treegrid? What I understand is that basically we can use either an xml or a json format. With an xml we have to to do some client side processing. We have to create an object with two properties: total, and an array: rows. Two fields idfield and _parentId are used to show a hierarchy. Now, with json examples I dont see any client side data processing before showing it. But how does it know the hierarchy? Seems like a json data needs to be fully prepared in order to show hierarchy? Is that correct?

Thanks
Logged
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« Reply #1 on: July 24, 2015, 09:36:43 AM »

Please refer to the example is the following link http://www.jeasyui.com/tutorial/tree/treegrid3.php and you will find enclosed a sql dump of the table used to hold tree data, where you can easily find how id and parentId is used in treegrid3demo_getdata.php code to form tree dynamically.
Logged
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« Reply #2 on: July 24, 2015, 09:43:49 AM »

Are you sure you are answering my question?
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!