Hi,
Is it possible select the parent node alone,even though it has child node?
PFA
I want to select the sever(parent) alone. But if uncheck all the child node parent node also deselect. How can i achieve this?
Hi,
Is it possible select the parent node alone,even though it has child node?
PFA
I want to select the sever(parent) alone. But if uncheck all the child node parent node also deselect. How can i achieve this?
Hi,
Thank you for the info.
Is there any way to use three state for some nodes and two state for some nodes?
Could you provide a sample of your tree structure?
Have you the same structure, as on the picture? If so - i can suggesst you link this event to the node ID.
Hi,
PFA.
For Unknown node I need three state and two state check box need for server which have applications.
Try something like this:
tree.enableCheckBoxes(true);
tree.loadJSONObject({
id:'0', item:[
{id: 'node1', text: 'node1', item:[
{id: 'node11', text: 'node11', item:[
{id: 'node111', text: 'node111', item:[
{id: 'node1111', text: 'node1111', item:[
{id: 'node11111', text: 'node11111'},
{id: 'node11112', text: 'node11112'}
]}
]}
]},
{id: 'node12', text: 'node12', item:[
{id: 'node121', text: 'node121'},
{id: 'node122', text: 'node122'},
{id: 'node123', text: 'node123'},
{id: 'node124', text: 'node124'},
{id: 'node125', text: 'node125'},
{id: 'node126', text: 'node126'},
{id: 'node127', text: 'node127'}
]}
]}
]});
tree.attachEvent("onCheck", function(id, state){
if(id=="node12" && state==1){
for (var h = 0; h < tree.hasChildren(id); h++){
tree.setCheck(tree.getChildItemIdByIndex(id, h), 1);
}
}
if(id=="node12" && state==0){
for (var h = 0; h < tree.hasChildren(id); h++){
tree.setCheck(tree.getChildItemIdByIndex(id, h), 0);
}
}
})