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

[Solved] Export, Row, Context, and nulls.

1 Answer 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
George Felipe
Top achievements
Rank 1
George Felipe asked on 09 Feb 2011, 05:28 PM
Hello,

I am currently trying to export to excel using the GridView's export functionality. I want to record all the rows that I am exporting, so I am using the e.Element == ExportElement.Row to figure out when a row is being printed and then grab the e.Context, cast into my data class and store it in a list. However, after several records are printed, e.Context just returns null values.

Why is this happening? Is it because of Row Virtualization?

I know in your GridView example of exporting RowDetails, you use Exported trigger and e.Context of the grid view to print the RowDetails section of the grid. You only show an example of 5 records...Will e.Context just return null after several of records?

I will greatly appreciate a response.

-George

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 10 Feb 2011, 08:28 AM
Hi George Felipe,

That is strange. Can you please send us a sample project via a support ticket?

Thanks

Greetings,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
George Felipe
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or