Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我根据用户设置的选项在 selectMode 1 和 3 之间切换。当我处于 selectMode 3 时,我选择了一些节点。然后我切换到 selectMode 2。如果我现在尝试取消选择一个节点,它不会被取消选择并被填充(参见屏幕截图),直到我刷新页面:刷新页面后它会正常工作。
我有办法解决这个问题。提前致谢
您可以尝试拨打tree.render(true, true)或tree.reload()。
tree.render(true, true)
tree.reload()
如果这不起作用,您始终可以在 selectMode 2 中遍历树tree.visit()并调整node.selectedandnode.partSel属性。
tree.visit()
node.selected
node.partSel