How to conditionally add DetailTemplate to TreeView

1 posts, 0 answers
  1. Balaji
    Balaji avatar
    5 posts
    Member since:
    Jul 2010

    Posted 13 May 2011 Link to this post


    RadControls version


    .NET version


    Visual Studio version

     2008 & 2010

    programming language


    browser support

    all browsers supported by RadControls

    [enter description here, together with step-by-step instructions on how to use the project]

    Hi - i have a radtreeview control with the following design. Depending on data that is being bound i would like to add a DetailTemplate to just that particular row. How can i do the same. thank you




    telerik:RadTreeList runat="server" ID="RadTreeList" DataKeyNames="ID" ParentDataKeyNames="PID"




    OnNeedDataSource="RadTreeList_NeedDataSource" AutoGenerateColumns="false" PagerStyle-AlwaysVisible="true"





    PagerStyle-Mode="NextPrevAndNumeric" PageSize="10" AllowPaging="true">









    <telerik:TreeListBoundColumn DataField="AfflName" HeaderText="Name" UniqueName="AfflName">








    <telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID">








    <telerik:TreeListTemplateColumn UniqueName="Addr" HeaderText="Address" DataField="Addr" >








    <asp:Label ID="addr" runat="server"><%# Eval("Addr") %></asp:Label>



















Back to Top