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

How to hide self-referencing detailtable when it is empty

4 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roelande
Top achievements
Rank 1
Roelande asked on 22 Apr 2008, 07:50 AM
Hello,

In this screenshot you can see that I have a self-referencing grid. Most of the rows however, have empty detailtables. Is there a way to hide the empty tables and the collapse/expand icon in front of rows with empty detail tables?

Kind regards,
Kristof

4 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 22 Apr 2008, 08:02 AM
Hello Kristof,

Please check this example for more info:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Hierarchy/SelfReferencing/DefaultCS.aspx

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roelande
Top achievements
Rank 1
answered on 22 Apr 2008, 08:56 AM
Hi Vlad,

Thanks for the help. I was able to solve the problem using the link you provided.

Kind regards,
Kristof
0
Patrick Lane
Top achievements
Rank 1
answered on 06 Apr 2010, 11:14 PM
Hi Vlad, In the example the page prerendercomplete event is overridden, but how do I do this if grid is in a user control (which has no prerendercomplete event)? Thanks.
0
Mira
Telerik team
answered on 09 Apr 2010, 01:51 PM
Hello Patrick,

Please try using the same code in the Page_PreRender event of the user control to hide the expand/collapse column.

I hope this helps.

Regards,
Mira
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Roelande
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Roelande
Top achievements
Rank 1
Patrick Lane
Top achievements
Rank 1
Mira
Telerik team
Share this question
or