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
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
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