PDA

View Full Version : [OPEN] [#349] how to auto expand the tree's root node?



hdsoso
Sep 21, 2013, 6:16 AM
according example:http://examples2.ext.net/#/TreePanel/Loaders/Direct_Method/
I want to auto expand the root node when page is loaded.
may be when page is loaded, how to trigger the root node click event to make the root node expanded?

hdsoso
Sep 21, 2013, 9:38 AM
according example:http://examples2.ext.net/#/TreePanel/Loaders/Direct_Method/
I want to auto expand the root node when page is loaded.
may be when page is loaded, how to trigger the root node click event to make the root node expanded?


protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
TreePanel1.ExpandAll();
}
}

resolved , plz close the thread.

Daniil
Sep 23, 2013, 5:52 AM
Hi @hdsoso,

It is better to configure the Root Node with:

Expanded="true"

hdsoso
Sep 23, 2013, 1:49 PM
Hi @hdsoso,

It is better to configure the Root Node with:

Expanded="true"


no work for this method.

Daniil
Sep 23, 2013, 2:19 PM
Reproduced. Reported to Sencha.
http://www.sencha.com/forum/showthread.php?272385

Daniil
Sep 24, 2013, 6:43 AM
Sencha opened a bug. Created an Issue to track the defect.
https://github.com/extnet/Ext.NET/issues/349

hdsoso
Nov 15, 2013, 2:20 PM
Sencha opened a bug. Created an Issue to track the defect.
https://github.com/extnet/Ext.NET/issues/349

is it be fixed now ?

Daniil
Nov 18, 2013, 7:26 AM
Unfortunately, it has not been fixed yet.

Please clarify, does this workaround not work for you anymore?

TreePanel1.ExpandAll();