Can I expand / collapse only the rows that have data in their detail tables?

2 posts, 0 answers
  1. Brent Hetland
    Brent Hetland avatar
    61 posts
    Member since:
    Aug 2009

    Posted 01 Mar 2016 Link to this post

    I am using version 2015.1.401.40 of the ASP.NET controls for AJAX.

    I am hiding the expand / collapse icon for mastertable rows where the detailed table has no rows.  I am also setting the detail table to visible false. I'm doing both of these in the DetailTableDataBind like so:

    e.DetailTableView.Visible = False

    parentItem("ExpandColumn").Controls(0).Visible = False

    I want the users to be able to expand and collapse all rows that have child data, so I added this property to the RadGrid:  EnableHierarchyExpandAll="true"

    However, that expands EVERY SINGLE ROW, even the rows where I've removed the expand / collapse button and set the detail table to invisible.

    Question:  Is there any way I can expand ONLY the rows that have an expand / collapse icon (only the rows that actually have detail data)?

    I've looked a bit at the javascript you all use _expandAll, but don't think I can implement what I want to do...




  2. Eyup
    Eyup avatar
    3298 posts

    Posted 04 Mar 2016 Link to this post

    Hello Brent,

    I've already provided a reference link in the following forum:'t-want-to-export-hierarchical-grid-rows-that-have-no-child-records

    I suggest that we continue our conversation in the mentioned thread.

    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