Welcome Guest Search | Active Topics | Sign In | Register

AutoExpand stoped working Options
Torben
Posted: Thursday, January 14, 2010 4:47:27 AM
Rank: Newbie
Groups: Member

Joined: 9/29/2009
Posts: 5
Hi Support,
I have a site with a treeview. (-:
When user click on the node (both name and the + sign) the tree autoexpand. This is ok.
I then decided to add navigation url to the node, then the autoexpand stoped working, when the user click the node name. Only when the user click the + sign the tree expand.
Is this normal when inserting a navigation url ?

asp.net 2.0
<eo:TreeView ID="TreeView1" runat="server" Width="100%" Height="100%" SingleExpandMode="AllLevels"
EnableViewState="False" StateCookieName="myTreeKage" EnableKeyboardNavigation="True"
AutoCheckParent="True" AutoCollapseOnClick="true" AutoExpandOnClick="true" SaveStateCrossPages="true">
<TopGroup Style-CssText="cursor:hand;">
<Nodes>
<eo:TreeNode ItemID="_Default" RaisesServerEvent="True" PopulateOnDemand="true">
</eo:TreeNode>

</Nodes>
</TopGroup>
</eo:TreeView>

Regards
Torben
eo_support
Posted: Thursday, January 14, 2010 8:36:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This is normal. AuotExpand occurs after click, which also handles NavigateUrl. So by the time AutoExpand is checked, the browser already moved to another page.

I believe you can handle the TreeView's ClientSideOnItemClick event and call the node's setExpanded method to expand the node. That should expand the node before it browser navigates to the new page, thus carries the state to the new page.

Thanks!
Torben
Posted: Friday, January 22, 2010 2:58:20 AM
Rank: Newbie
Groups: Member

Joined: 9/29/2009
Posts: 5
Hi,
Sorry for the late responce on this issue. It sounds correct that I need a Clientside event.
I have not been working with scripts before, so does anybody have an exampel for the java script for this issue ?

Thanks in advance.
Torben
eo_support
Posted: Friday, January 22, 2010 7:13:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will want to take a look of this help topic:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

Thanks!
Torben
Posted: Friday, January 22, 2010 7:34:00 AM
Rank: Newbie
Groups: Member

Joined: 9/29/2009
Posts: 5
Hi Support,
Thanks, Supert, just whap I needed, it is now working.
Regards,
Torben


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.