Forum

 
ForumForumDiscussionsDiscussionsGeneralGeneralIs it possible to expand all nodes of the TreeView on load page?!Is it possible to expand all nodes of the TreeView on load page?!
Previous Previous
 
Next Next
New Post
 16/12/2009 14:23
 

I tried:

<ddr:MENU MenuStyle="Treeview" NodeSelector="<%#PortalSettings.ActiveTab.BreadCrumbs(1).TabID%>" runat="server">
<ClientOptions>
<ddr:ClientString Name="animated" Value="slow" />
<ddr:ClientBoolean Name="unique" Value="true" />
<ddr:ClientBoolean Name="collapsed" Value="true" />

</ClientOptions>
</ddr:MENU>

But it does not work :(

New Post
 16/12/2009 15:30
 

Hi, the initial state of the treeview template is actually set by applying the "closed" class to the relevant nodes in the HTML. If you want to leave all nodes expanded, simply removing these lines from template.xslt should do the trick:

<xsl:if test="@breadcrumb=0 or @selected=1">
<xsl:attribute name="class">closed</xsl:attribute>
</xsl:if>

I'd probably recommend removing your client options as well - the "unique" and "collapsed" options don't really fit with a fully expanded tree.

New Post
 25/12/2009 08:57
 

Allan

Thanks for quick support

Previous Previous
 
Next Next
ForumForumDiscussionsDiscussionsGeneralGeneralIs it possible to expand all nodes of the TreeView on load page?!Is it possible to expand all nodes of the TreeView on load page?!

Register / login

Please note, to post on this forum you will need to register or log in.

Sign up for updates