Anurag
unread,Dec 14, 2010, 8:18:15 AM12/14/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
To create a jsTree using json data is easy e.g.
theTree.jstree({
plugins: ["themes", "json_data", "crrm", "ui", "unique",
"types"],
json_data : {
data: myJsonData
}
})
But i couldn't find a way to update tree, with new data e.g. I want to
sync my two trees or have got data from an existing ajax call and want
to update tree with that data,
so is there something like this
theTree.jstree('set_json', myJsonData)
atleast naive call like this doesn't work :(
theTree.jstree({
json_data : {
data: myNewJsonData
}
})
I hoped it will update the existing tree