ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Treeitem select/check

Fabiosimao
4 Jan 2012 13:26:14 GMT
4 Jan 2012 13:26:14 GMT

Hello guys!


First of all, happy new year for everyone!


I want to know how can i change the treeitem behaviour so that it doesnt check itself when selected. Whats happening now is when i left-click a treeitem it becomes selected (or unselected) and ALSO checked (or unchecked) and i want to split those two things, i want to check only when i hit the checkbox.


Another doubt that i have is: can i check multiple treeitems without having to select all of them? i think this is somehow related to my first question but..


Thanks in advance ;)

matthewgo
6 Feb 2012 03:55:52 GMT
6 Feb 2012 03:55:52 GMT

I think this is a spec if you specify checkmark attribute as true.
Please try to place a checkbox in the treeitem, then you can control by yourself

Fabiosimao
6 Feb 2012 12:50:36 GMT
6 Feb 2012 12:50:36 GMT

Thank you for ur reply, i'll try that ;)