Mar 29, 2011, 2:08 PM
[CLOSED] Treepanel cascade check
Hi,
How do i check / uncheck all recursive childnode checkbox based on parent node checkbox selection in treepanel ?
I tried the below solution but this works only if node is expanded. i want all recursive child node to be checked / unchecked based on parent node selection even if the child nodes are expanded or not, and if all child node is check / uncheck parent node should also be checked / uncheck.
on tree checkchange event
Thanks & Regards,
Inayath.
How do i check / uncheck all recursive childnode checkbox based on parent node checkbox selection in treepanel ?
I tried the below solution but this works only if node is expanded. i want all recursive child node to be checked / unchecked based on parent node selection even if the child nodes are expanded or not, and if all child node is check / uncheck parent node should also be checked / uncheck.
on tree checkchange event
<CheckChange Handler="UserMaintanenceControl_NodeCheckChange(node, checked);" />
javascript method
var UserMaintanenceControl_NodeCheckChange = function (node, isChecked)
{
var f = function(scope) {
if(scope.attributes != null){
scope.attributes.checked = isChecked;
getElementsByClass('x-tree-node-cb', scope.ui.getEl())[0].checked = true;
return true;
}
};
node.cascade(f);
}
Note : We are using coolite v0.8, we have plan to migrate newer version in next release.Thanks & Regards,
Inayath.
Last edited by Daniil; Apr 01, 2011 at 1:08 PM.
Reason: Please use [CODE] tags, [CLOSED]