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

Question about GridViewToggleRowDetailsColumn

2 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
VH
Top achievements
Rank 1
VH asked on 25 Mar 2010, 04:39 AM
Hi,

I am wondering is it possible to hide GridViewToggleRowDetailsColumn for rows which do not have row details? At the moment, some of my rows do not have details but it still be able to show the detail template with empty content. I have also tried using template selector, so for rows with no details I defined a empty template, in this case, the GridViewRowDetailsColumn is still visible, though it shows nothing when you click on it. I think it is better if there is a way to hide it or make it in expanded status and not be able to collapse.

Thank you in advance!

VH

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 25 Mar 2010, 10:07 AM
Hello VH,

I am not sure if such behavior is easily achievable with the GridViewToggleRowDetailsColumn , however RadGridView  offers another convenient API to control whether an expander button is visible or not - The row has an IsExpandable property. You may see it in action in the this online example.
The relevant code may be found in the RowLoaded event handler.

Sincerely yours,
Pavel Pavlov
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.
0
VH
Top achievements
Rank 1
answered on 25 Mar 2010, 10:37 PM
Thank you very much! That solved my problem. :)

Cheers,

VH
Tags
GridView
Asked by
VH
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
VH
Top achievements
Rank 1
Share this question
or