Posted on Feb 6, 2012 (permalink)
<
telerik:RadTreeView
ID
=
"RadTreeView1"
runat
"server"
CheckBoxes
"True"
MultipleSelect
EnableViewState
"true"
ShowLineImages
"False"
EnableEmbeddedSkins
Skin
"tree_2"
OnNodeClick
"RadTreeView1_NodeClick"
OnNodeDataBound
"RadTreeView1_NodeDataBound"
>
NodeTemplate
small
asp:Label
"lblnodeText"
Text='<%#Eval("Title") %>' runat="server" /><
"lblCatId"
Text='<%#Eval("Id") %>' runat="server" Visible="false"></
><
"lblisCustomer"
Text='<%#Eval("isCustomer") %>' runat="server" Visible="false"></
"Description"
Text='<%#Eval("description") %>' Visible="false" /><
asp:HiddenField
"DescriptionVisible"
Value='<%#Eval("descriptionVisible") %>' />
a
href
"javascript:Popup_Window('category_detail','<%# Eval("
id") %>')" style="text-decoration: none;">
span
style
"color: #BBBBBB"
>e</
></
</
Reply
function
OnClientNodeExpanded()
{
var
tree = $find(
"<%=RadTreeView1.ClientID %>"
);
node = tree.get_allNodes();
for
(i = 0; i < node.length; i++)
if
(node[i].get_nodes() !=
null
)
node[i].expand(
true
}
OnClientNodeCollapsed()
node[i].collapse();
Back to Top
[ ASP.NET TreeView Features | Documentation | Demos | Telerik TV | Self-Paced Trainer | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below