|
Title: Understanding data structure for treegrid Post by: zolotoy 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 Title: Re: Understanding data structure for treegrid Post by: thecyberzone 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 (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.
Title: Re: Understanding data structure for treegrid Post by: zolotoy on July 24, 2015, 09:43:49 AM Are you sure you are answering my question?
|