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