I would like to bind a tree to a form, whereas the tree may contain multiple values apart from the ‘id’ and ‘value’ field. How do I bind to the tree so that when I select the tree node, the values should be populated in form?. The example json format is { data:[
{ id:“1”, open:true, value:“The Shawshank Redemption”, type: “movie”, watched: “yes”, filesize: 62342323, data:[
{ id:“1.1”, value:“Part 1”, codec: “avi”, resolution: “1280x720”}
]},
{ id:“2”, open:true, value:“The Godfather”, type: “movie”, watched: “yes”, filesize: 23423423423, data:[
{ id:“2.1”, value:“Part 1”, codec: “avi”, resolution: “640x480” },
]}
]};
And also, how do I interpret a different value for tree other than ‘id’ and ‘value’? For example in the above tree if my data contains attributes ‘show’ instead of ‘id’ and ‘title’ instead of ‘value’.