开发者

Retrieve tree's states after load

开发者 https://www.devze.com 2023-03-07 14:17 出处:网络
I updating my tree and to synchronize this with my J开发者_如何学GoSON i using methods : mystore.sync();

I updating my tree and to synchronize this with my J开发者_如何学GoSON i using methods :

mystore.sync(); mystore.load();

If i don't using the second method, the tree don't show modifications ! With load method, tree collapse and the updates are effectives. But tree collapse even though before it was expand . How to restore state before load ??

Thanks a lot :)


You can send list of expanded items to server, and generate your json with 'expanded: ture' according to expanded list.

0

精彩评论

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