RADGrid as a node of RADTreeview

3 posts, 0 answers
  1. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 14 Oct 2008 Link to this post

    How is it possible to show the RADGrid as a node inside a RAD Treeview? I need to populate the RADGrid on node expand event and then show the records per treenode.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Oct 2008 Link to this post

    Hi Omarr,

    Try adding the RadGrid in the NodeTemplate of RadTreeView to achieve the desired scenario.

    ASPX:
     <telerik:RadTreeView ID="RadTreeView1"  runat="server"  OnNodeClick="RadTreeView1_NodeClick" OnPreRender="RadTreeView1_PreRender" OnNodeDataBound="RadTreeView1_NodeDataBound"
              <Nodes > 
                <telerik:RadTreeNode   Text="America" > 
                 <Nodes> 
                   <telerik:RadTreeNode  runat="server"  Text="Canada" > 
                   <NodeTemplate> 
                    <telerik:RadGrid ID="RadGrid3"  DataSourceID="SqlDataSource1" AutoGenerateColumns="true" runat="server"
                    </telerik:RadGrid> 
                </NodeTemplate> 
                   </telerik:RadTreeNode> 
                    ... 


    Thanks
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 15 Oct 2008 Link to this post

    I need a global node template, secondly I need to populate the grid based on the expanded node value. Somehow it is not working. The treeview itself is dynamic. Could you please provide a sample working code for this?
Back to Top