admin管理员组文章数量:1026978
Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate the tree. I get the data from DB and need to show my preselected node selected and disabled as below.
One option is to set below properties as:
hideCheckbox: true
selected: true
But this makes the checkbox hidden (as shown in green background below)
Can't I just disable the node itself(as in 1st pic)? Something similar to diabling of entire tree with below option.
disabled: false (disables the tree)
UPDATE
If I use unselectable true then I loose the checked box check. ( screen below)
unselectable: true
selected: true
Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate the tree. I get the data from DB and need to show my preselected node selected and disabled as below.
One option is to set below properties as:
hideCheckbox: true
selected: true
But this makes the checkbox hidden (as shown in green background below)
Can't I just disable the node itself(as in 1st pic)? Something similar to diabling of entire tree with below option.
disabled: false (disables the tree)
UPDATE
If I use unselectable true then I loose the checked box check. ( screen below)
unselectable: true
selected: true
Share Improve this question edited Jul 16, 2015 at 7:30 pranav asked Jul 15, 2015 at 14:14 pranavpranav 4311 gold badge11 silver badges28 bronze badges1 Answer
Reset to default 4There is no option to disable a node altogether, but you can 'disable' checkboxes using the unselectable
option.
Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate the tree. I get the data from DB and need to show my preselected node selected and disabled as below.
One option is to set below properties as:
hideCheckbox: true
selected: true
But this makes the checkbox hidden (as shown in green background below)
Can't I just disable the node itself(as in 1st pic)? Something similar to diabling of entire tree with below option.
disabled: false (disables the tree)
UPDATE
If I use unselectable true then I loose the checked box check. ( screen below)
unselectable: true
selected: true
Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate the tree. I get the data from DB and need to show my preselected node selected and disabled as below.
One option is to set below properties as:
hideCheckbox: true
selected: true
But this makes the checkbox hidden (as shown in green background below)
Can't I just disable the node itself(as in 1st pic)? Something similar to diabling of entire tree with below option.
disabled: false (disables the tree)
UPDATE
If I use unselectable true then I loose the checked box check. ( screen below)
unselectable: true
selected: true
Share Improve this question edited Jul 16, 2015 at 7:30 pranav asked Jul 15, 2015 at 14:14 pranavpranav 4311 gold badge11 silver badges28 bronze badges1 Answer
Reset to default 4There is no option to disable a node altogether, but you can 'disable' checkboxes using the unselectable
option.
本文标签: javascriptDisable FancyTree NodesStack Overflow
版权声明:本文标题:javascript - Disable FancyTree Nodes - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745616139a2159302.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论