View Full Version : How to reset TreePanel Nodes when they have checkboxes

18 Aug 2008, 10:52 AM
I'm having trouble resetting all the nodes in a tree panel when they have check boxes attached.

I have a button that its handler is resetfilter
vtree is a variable holding a treepanel

i've noticed if i fire an event from in the loop it stops the loop from completing

function resetfilter(){
t = vtree.getChecked();

for (i = 0; i < t.length; i++) {
do something here????
fire some event????

I have tried setting the individual nodes.attributes. but how do i tell the UI to reflect that change? shouldn't there be a reset() method or something?

any help or pointers is most appreciated!