Topic: Setting checkbox checked state

Hey there,

Does anyone knows if it's possible to set checkbox checked state upon tree loading via json?

Re: Setting checkbox checked state

Hello,

just set

"state":{"checked":"checked"}
"state":{"checked":"unchecked"}

in your json array. Works fine with simple checkboxes, but I can't figure out how to handle depended checkboxes (if there are elements with children, "partially" will be overwritten).

Regards
kugli

p.s.     Where's moro got to?

Re: Setting checkbox checked state

It seems there are some problems with dependent checkboxes


p.s.     Where's moro got to?
on leave

Re: Setting checkbox checked state

Thank you guys

Re: Setting checkbox checked state

Since there is a problem with the dependant checkboxes and this way of setting checkboxes, isn't it better to use the switch method (and looping through the nodes that should be checked)..

Or does anyone have a fix yet (didn't have time to look at the code myself).

Re: Setting checkbox checked state

fixed rev109-111