extjs TreeNode expand removeChild导致折叠

在使用TreeNode时,在expand事件中删除了所有子节点,然后再动态加载,结果导致节点再次折叠了,查看源码,原来removeChild方法中当子节点为空时,TreeNode会调用collapse方法,真是多此一举!

 

还没找到好的解决办法,所以在expand事件中要避免调用removeChild!


Total views.

© 2013 - 2018. All rights reserved.

Powered by Hydejack v6.6.1