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

How to get all row detail visible

3 Answers 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benoit
Top achievements
Rank 1
Benoit asked on 21 Jun 2011, 04:39 PM
Hello,

Is there a way to know for sure which rows have a DetailsVibility?

I try that but return only the rendered row.
GridView.ChildrenOfType<GridViewRow>().Where(x => x.DetailsVisibility == Visibility.Visible);

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 21 Jun 2011, 06:22 PM
Hello Benoit,

Indeed, due to the virtualization of the RadGridView, you will be able to get only the visual elements in the view port. May you share more information about the exact scenario that you want to accomplish ?
 

Regards,
Maya
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
Benoit
Top achievements
Rank 1
answered on 21 Jun 2011, 07:05 PM
Hello Maya,

I want to print a RadGridView with RowDetails if it is visible. 
Same method in the Demo (WPF / GridView / Exporting and Printing / Printing).

Benoit
0
Maya
Telerik team
answered on 27 Jun 2011, 10:33 AM
Hello Benoit,

Generally, in the example mentioned exporting is performed based on the underlying data, not on visual elements. Consequently, during the Exported event you are not aware whether the details of corresponding row are visible or not.
What you may try is to expose a new property in your data object, set it to true/false on opening the row details and check its value on Exported event. If being "True" for example, you may export the data from details.
 

Kind regards,
Maya
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
GridView
Asked by
Benoit
Top achievements
Rank 1
Answers by
Maya
Telerik team
Benoit
Top achievements
Rank 1
Share this question
or