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

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

1 Answer 455 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 01 Mar 2016, 08:51 PM

Hi,
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...

Thanks,

Brent

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 04 Mar 2016, 01:08 PM
Hello Brent,

I've already provided a reference link in the following forum:
http://www.telerik.com/forums/i-don't-want-to-export-hierarchical-grid-rows-that-have-no-child-records

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

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
Tags
Grid
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or