EasyUI Forum

General Category => General Discussion => Topic started by: hahamed on August 22, 2016, 11:50:22 PM



Title: Tree: update node state not work.
Post by: hahamed on August 22, 2016, 11:50:22 PM
Hi,
Why this code does not work?

Code:
$('#tt').tree('update', { target: node.target, state: 'closed' });

I want reload ajax a node in client. but node state is open and i want it be closed then use:
Code:
$('#tt').tree('reload', node.target);



Title: Re: Tree: update node state not work.
Post by: stworthy on August 23, 2016, 02:33:51 AM
You don't need to collapse a node, just call 'reload' method to reload it.
Code:
$('#tt').tree('reload', node.target);