EasyUI Forum
March 12, 2026, 01:59:36 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: Treegrid Data Format  (Read 10951 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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/
« Last Edit: September 02, 2015, 04:57:51 PM by devnull » Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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/
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: September 02, 2015, 04:42:04 PM »

Ahhh, I thought that the id field needed to be present in the children, thanks
Logged

-- Licensed User --
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!