Welcome Guest Search | Active Topics | Sign In | Register

Treeview Exapnd All Options
sindu nair
Posted: Friday, August 17, 2012 4:29:06 AM
Rank: Newbie
Groups: Member

Joined: 3/20/2012
Posts: 4

Hi,

I have an EO treeview in our .net application .
design (.aspx) code is given below:

<eo:TreeView ID="libTreeView" runat="server" AutoWrap="True" AutoSelectSource="ItemClick"
OnItemPopulate="libTreeView_ItemPopulate" ClientSideOnContextMenu="showLibraryContextMenu" SingleExpandMode="AllLevels" >
<CheckBoxImages Visible="True" Margin="3"></CheckBoxImages>
<LineImages Visible="False"></LineImages>
<TopGroup Style-CssText="cursor:hand; font-family:Arial, Sans-Serif;font-size:medium;" >
<Nodes>
</Nodes>
</TopGroup>
<LookNodes>
<eo:TreeNode ImageUrl="Blank" CollapsedImageUrl="00030501" ExpandedImageUrl="00030502" ItemID="_Default"
NormalStyle-CssText="padding-right: 3px; padding-left: 3px; padding-bottom: 2px; padding-top: 3px;"
SelectedStyle-CssText="border-right: #8396c3 1px solid; padding-right: 2px; border-top: #8396c3 1px solid; padding-left: 2px; padding-bottom: 1px;
border-left: #8396c3 1px solid; padding-top: 1px; border-bottom: #8396c3 1px solid; background-color: #f2f5fb;"
HoverStyle-CssText="border-right: #8396c3 1px solid; padding-right: 2px; border-top: #8396c3 1px solid; padding-left: 2px; padding-bottom: 1px;
border-left: #8396c3 1px solid; padding-top: 1px; border-bottom: #8396c3 1px solid; background-color: #f2f5fb;">
<SubGroup ItemSpacing="8"></SubGroup>
</eo:TreeNode>
</LookNodes>
</eo:TreeView>


I have populating data into 'treeview ' in pageload.

I have given some example given below:

the treeview looks like


+Example1
+Example2
+Example3 and so on ...


when we click on the '+' in the Example1.It shows under it as

Example1
+test1
+test2

test1 ,test2 have child items ...

My requirement is when we click on the Expample1 should expand all items (incliding child items).

that means Click on +Example1 should be

Example1
test1
test11
test2
test12 and so on..


I have set 'SingleExpandMode="AllLevels" ' but it does not meet my requirement.

Could you please send me the solution of it?






eo_support
Posted: Friday, August 17, 2012 9:40:04 AM
Rank: Administration
Groups: Administration

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

You can take a look of TreeView.ExpandAll method. We do not code for you, so please do not just post your requirement and ask us to send you a solution. That's your job. We do not do your job.

Thanks!


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.