Hi,
I have the following JSON Structure which shows up as the tree widget
issueTypes: {
“id”: 4,
“leaf”: false,
“text”: null,
“item”: [{
“id”: 5,
“leaf”: false,
“text”: “Inquiry about the Products”,
“item”: [{
“id”: 6,
“leaf”: true,
“text”: “Installation”
}, {
“id”: 7,
“icon”: “icon.png”,
“leaf”: true,
“text”: “Service Centres”
}, {
“id”: 8,
“icon”: “icon.png”,
“leaf”: true,
“text”: “Compatability”
}, {
“id”: 9,
“icon”: “icon.png”,
“leaf”: true,
“text”: “Product Features, Comparison, Freebies”
}, {
“id”: 10,
“leaf”: true,
“text”: “Product Availability”
}, {
“id”: 11,
“leaf”: true,
“text”: “Image & Data Error”
}, {
“id”: 12,
“leaf”: true,
“text”: “Category not listed on our Website”
}, {
“id”: 13,
“leaf”: true,
“text”: “Warranty, Sales Package”
}]
}
I have set an onClickhandler on this tree , when I click on a node, it invokes a call back with parameters as the ID.
Can anyone let me know how can i get the associated Object or JSON ?
For example on clicking of Warranty,sales package i get an id as 13 . I want to reterive the whole object i.e {
“id”: 13,
“leaf”: true,
“text”: “Warranty, Sales Package”
}
is it possible? and if yes how do i do it ?