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

Canceling Radgridview Export

1 Answer 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Emanuel
Top achievements
Rank 1
Emanuel asked on 02 Jul 2013, 07:25 PM
Hi, We are using the  the Silverlight Telerik controls (v 2013.1.403.1050). We are  able to export the grids to pdf/excel but some exports take a lot of time and the export process locks the UI, seems to be a normal behavior because is not possible to use another thread than de UI thread ( is not possible to do an "progress indicator" because this, right?  ).
The question is:  Is there a way to cancel the export process ?

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 04 Jul 2013, 03:55 PM
Hi Emanuel,

In order to achieve your goal, you can subscribe to the RadGridView's ElementExporting event and cancel it:

private void clubsGrid_ElementExporting(object sender, GridViewElementExportingEventArgs e)
       {
           e.Cancel = true;
       }


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Emanuel
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or