开发者

Attempt to get node but dynatree tree don't reload completely yet

开发者 https://www.devze.com 2023-02-26 19:27 出处:网络
Everybody hi Have such script template tree.reload() tree.activateKey(); so, it reloads tree and then get focus for special node.

Everybody hi

Have such script template

tree.reload() tree.activateKey();

so, it reloads tree and then get focus for special node.

But get such situation - activateKey starts when tree is reloading and don't get node we need because it doesn't load yet...

how it could be fixed? how 开发者_运维技巧launch activateKey when tree guaranted reloaded completely?


You could try to call activateKey() in the onPostInit event.

0

精彩评论

暂无评论...
验证码 换一张
取 消