PDA

View Full Version : Count Checked ChildNodes ...



DeDarling
4 Nov 2010, 5:00 AM
Hi all,

i have a new Question :-)

i want count the "checked" childNodes from a Node ...

but how ?


getChecked()

is only alowed on the hole tree :-(

Condor
4 Nov 2010, 5:14 AM
var count = 0;
node.eachChild(function(child){
if (child.getUI().isChecked()) {
count++;
}
});

DeDarling
4 Nov 2010, 5:25 AM
Ahh coool :-) Thx ...

My Complete Script with your help :-)

http://www.sencha.com/forum/showthread.php?114586-Tree-with-Checked-Checkboxes&p=534475#post534475

Thx,

this Post can be closed .. :-)