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

ExportToCsv Issue

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vidyadhar
Top achievements
Rank 1
Vidyadhar asked on 09 Sep 2013, 11:47 PM
Hi,

I have a RadGrid, in a SharePoint 2010 Visual Web Part, bound server side using NeedDataSource event. I am trying to export the data from the grid on a button click event. The export feature works fine on the first button click, exporting all the data. The issue is that this export is breaking the functionality of all the components on the page. Nothing works on the page after the initial export. I removed all my Ajax settings so it causes a full post back, which it is doing.

When I commented out the line RadGrid1.MasterTableView.ExportToCSV(), everything works good. I mean the button click causing postback on click event and all other components work fine all the time. Adding the above line back is what is causing the issue. Am not sure what is causing this behavior. I tried adding the button as RegisterPostBackControl on the ScriptManager. But it didn't help.

Can you shed some light over this.


Thanks,
Viddy.

1 Answer, 1 is accepted

Sort by
0
Vidyadhar
Top achievements
Rank 1
answered on 10 Sep 2013, 08:04 PM

I think this is a known issue. Got it solved using the solution on this link http://www.faisalmb.com/post/Controls-not-functional-after-Export-to-Excel-or-Export-to-PDF-of-Telerik-in-Sharepoint-Application-page.aspx. Solution 3 is what I ended up using and it works perfectly.

Thanks,
Viddy.

Tags
Grid
Asked by
Vidyadhar
Top achievements
Rank 1
Answers by
Vidyadhar
Top achievements
Rank 1
Share this question
or