Hello everyone,

I have found that double-click events on my disabled checkbox tree nodes are processed fully, even though they shouldn't be. Consequently, I'm wondering if there is something wrong with the way I am initializing my tree.

And also I have written some code, to check all the child nodes if a parent is checked and vice versa.

Below is my code details.

var producttree = new Ext.tree.TreePanel({
renderTo: 'productSelectionContentPanel',
tbar: productSelectionBar,
loadMask: {msg: "Loading............"},
style: "width: 100%;",
height: 250,
autoScroll:true,
animate:true,
containerScroll: true,
rootVisible: false,
lines: true,
root: new Ext.tree.AsyncTreeNode({
children: checktreeData,
text: 'KC', expanded:false,
loader: new Ext.tree.TreeLoader({preloadChildren: true})
}),
listeners: {
checkchange: function(node, checked)
{
if(checked)
{
node.getUI().addClass('complete');
}
else
{
node.getUI().removeClass('complete');
}
// If a parent node is unchecked, uncheck all the children
if(!node.getUI().isChecked())
{
//node.expandChildNodes(true);
node.eachChild(function(child)
{
child.ui.toggleCheck(false);
}
)
}
// If a child node is checked, check all the ancestors
node.bubble(function(node)
{
if(node.getUI().isChecked())
{
node.expand();
if(!node.parentNode.getUI().isChecked())
{
node.parentNode.getUI().toggleCheck();
}
}
}
);
//If check any child node, check all child nodes
}
}
});


Can anyone point in me in the right direction here?

Thanks,
Jagadeesh