EasyUI Forum
May 09, 2024, 03:24:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tree: update node state not work.  (Read 6209 times)
hahamed
Newbie
*
Posts: 13


View Profile
« 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);

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!