EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on September 02, 2015, 04:33:35 AM



Title: Treegrid Data Format
Post by: devnull on September 02, 2015, 04:33:35 AM
I am using the treegrid for the first time and are struggling to understand the data format, heres what I have now, can you let me know where I am going wrong ??

At the moment, this just creates a table with 9 rows, 4 of which are blank !

http://jsfiddle.net/54v8nacp/8/


Title: Re: Treegrid Data Format
Post by: stworthy on September 02, 2015, 04:38:05 PM
You have defined the 'idField' and 'treeField' fields but they are missing in your json data. Please try this updated example http://jsfiddle.net/54v8nacp/10/


Title: Re: Treegrid Data Format
Post by: devnull on September 02, 2015, 04:42:04 PM
Ahhh, I thought that the id field needed to be present in the children, thanks