Topic: Setting checkbox checked state
Hey there,
Does anyone knows if it's possible to set checkbox checked state upon tree loading via json?
You are not logged in. Please login or register.
Pages 1
Hey there,
Does anyone knows if it's possible to set checkbox checked state upon tree loading via json?
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?
It seems there are some problems with dependent checkboxes
p.s. Where's moro got to?
on leave
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).
Posts [ 6 ]
Pages 1
Powered by PunBB