EasyUI Forum
May 21, 2024, 01:32:59 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: treegrid: rows expand when applying manual data  (Read 6275 times)
itay-g
Newbie
*
Posts: 35


View Profile
« on: April 28, 2014, 05:32:47 AM »

Hi,
I'm trying to apply client-side data to treegrid, and I noticed that all the data is expanded.
Is there a way to set the treegrid to open collapsed at the first time?

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


View Profile Email
« Reply #1 on: April 28, 2014, 12:20:12 PM »

Set 'state' property to 'closed' for a node, it will become collapsed when loaded. Please refer to this example http://www.jeasyui.com/demo/main/index.php?plugin=TreeGrid&theme=default&dir=ltr&pitem=
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!