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

Exporting event removed?

3 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
PJ Melies
Top achievements
Rank 1
PJ Melies asked on 16 Nov 2011, 07:25 PM
We just downloaded 2011.3.1116 and our project no longer builds because it RadGridView Exporting event has been removed.  Can you tell us where we should now place the code that we had in that event handler?

3 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 17 Nov 2011, 08:15 AM
Hi,

 This event was marked with Obsolete attribute for more than a year. Why you are using it? You should use ElementExporting.

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
PJ Melies
Top achievements
Rank 1
answered on 17 Nov 2011, 07:11 PM
Thanks.  The code in question is quite old and hasn't been touched/reviewed since it was originally written.  I see the events are properly documented and if I had actually read the documentation first I could have answered my own question.
0
Ásgeir
Top achievements
Rank 1
answered on 30 Nov 2011, 02:37 PM
This problem also occurred in our code when we updated to 2011 Q3.

I found the page saying it should have been obsolete a year ago but this never seems to have come up in this whole year.
I changed all Exporting to ElementExporting but now we are getting an XamlParseException:

Failed to assign to property
'Telerik.Windows.Controls.GridView.GridViewDataControl.ElementExporting'

-----
Edit:
I found the problem
GridViewExportEventArgs
should be changed to 
GridViewElementExportingEventArgs
in the eventhandler

Funny though, that this doesn't pop up until now
Tags
GridView
Asked by
PJ Melies
Top achievements
Rank 1
Answers by
Vlad
Telerik team
PJ Melies
Top achievements
Rank 1
Ásgeir
Top achievements
Rank 1
Share this question
or