EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: itay-g on April 28, 2014, 05:32:47 AM



Title: treegrid: rows expand when applying manual data
Post by: itay-g 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


Title: Re: treegrid: rows expand when applying manual data
Post by: stworthy 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=