JSON data - checked node

303 views
Skip to first unread message

Vladimír Náprstek

unread,
Mar 30, 2010, 6:59:41 AM3/30/10
to jsTree
Hi,
how do I (using checkbox plugin) check some node? I mean using some
attribute in JSON data received async.? I tried something like:

[
{
data: "ARIS"
attributes: {
id: 1
class: "selected" // or "check" or "checked"
}
}
]

But without any result. Please, help.

Vladimir

vakata

unread,
Mar 30, 2010, 9:49:43 AM3/30/10
to jsTree
There is no way to specify that in the data (well, there is but it
would only make the node LOOK checked, but it won't be regarded as
such).
Just check the nodes manually onload, or use the selected config
option. (I believe it is a bit bugged in 0.9.9, but it works fine on
the current 1.0 builds)

Try it out or just wait a day or two for 1.0 RC.

Cheers,
Ivan

On 30 Март, 13:59, Vladimír Náprstek <vladimir.naprs...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages