PDA

View Full Version : Programmaticaly check/uncheck checkboxes in the Tree panel



whalethewise
4 Oct 2011, 2:39 PM
Hi,

I am using approach to create checkboxes in TreePanel using json checked: false method.
I would like to implement single check only checkbox.
So in the checkchange listener I am getting checked nodes using getChecked() method of the tree.
Then i am iterating through the array of checked nodes and set node.checked=false.

Unfortunately, it does not change the state of the checkbox on display.

Could you please advise me with solution?

Thanks

skirtle
4 Oct 2011, 5:05 PM
These two threads should provide the information you need:

http://www.sencha.com/forum/showthread.php?144626
http://www.sencha.com/forum/showthread.php?146377

In short:


node.set('checked', false);

whalethewise
4 Oct 2011, 5:27 PM
Thank you very much