This is a migrated thread and some comments may be shown as answers.

NodeTemplate Child

1 Answer 43 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Danilo
Top achievements
Rank 1
Danilo asked on 28 Jan 2012, 10:11 AM
Hi,
it's possible to apply nodetemplate only at child nodes?
Example:

parent1 (no template)
------ child1 (with template image)
------ child2 (with template image) 
------ child3 (with template image) 

If yes, can i have an example, please?
Thank's

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Jan 2012, 06:18 AM
Hello,

Try the following.
ASPX:
<telerik:RadTreeView ID="treeeview1" runat="server">
 <Nodes>
  <telerik:RadTreeNode Text="parent1">
     <Nodes>
        // child node with template
        <telerik:RadTreeNode Text="child">
           <NodeTemplate>
              <asp:Image ID="img1" runat="server" ImageUrl="~/Images/button_edit_grey.gif" AlternateText="image1" />
           </NodeTemplate>
         </telerik:RadTreeNode>
      </Nodes>
    </telerik:RadTreeNode>
 </Nodes>
</telerik:RadTreeView>

Thanks,
Princy.
Tags
TreeView
Asked by
Danilo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or