RadTreeList -inside a control which should have Expand /Collapse button

5 posts, 0 answers
  1. Sindu
    Sindu avatar
    46 posts
    Member since:
    Oct 2011

    Posted 24 Oct 2011 Link to this post


    Hi Princy,

      I have a RadTreeList.I want to add a RadTreeList inside any RadControl.
     My objective is to expand this radControl shows RadTreeList .
     How is it possible?

    Thanks

    Sindu.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Oct 2011 Link to this post

    Hello Sindu,

    You can add a RadTreeList in NestedViewTemplate of the RadGrid as shown below.
    aspx:
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="true">
      <MasterTableView>
          <NestedViewTemplate>
              <telerik:RadTreeList ID="RadTreeList1" runat="server" DataSourceID="SqlDataSource2"
                  ParentDataKeyNames="ReportsTo" DataKeyNames="EmployeeID" AutoGenerateColumns="false">
                      <Columns>
                      <telerik:TreeListBoundColumn DataField="EmployeeID" UniqueName="EmployeeID" HeaderText="Employee ID" />
                      <telerik:TreeListBoundColumn DataField="LastName" UniqueName="LastName" HeaderText="Last Name" />
                      </Columns>
               </telerik:RadTreeList>
          </NestedViewTemplate>
     </MasterTableView>
    </telerik:RadGrid>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Serkan
    Serkan avatar
    6 posts
    Member since:
    Jan 2012

    Posted 02 Apr 2012 Link to this post

    hi Shinu;   made me want to do this example, the problem here radtreelist_updatecommand 

  5. Raka
    Raka avatar
    71 posts
    Member since:
    Sep 2011

    Posted 19 Feb in reply to Shinu Link to this post

    Hello.  This is a very old post but I am having a problem with RadTreeList inside a NestedViewTemplate of RadGrid.  RadGrid has a DataKeyName=SomeID.  I want to use this SomeID in RadTreeList1_NeedDataSource to filter out the data I want displayed.  How do I access SomeID in that event handler?

    If RadGrid has three rows based on SomeID, currently what I am getting is the same RadTreeList repeated three times.  What I need is somehow show RadTreeList based on first SomeID value in first RadGrid-Row and so on...

     

    Thank you for your help.

    Raka.

  6. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 24 Feb Link to this post

    Hi Raka,

    You can use the approach demonstrated in the attached web site sample to achieve this requirement.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017