开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜