beginner_help
asked on
How to export data in telerik RadGrid to Excel spreadsheet?
I am using telerik RadGrid in ASP.net page, I would like to export the data in this RadGrid to open or save into excel spreadsheet on button click.
Can anyone help in doing this.
Thanks.
Can anyone help in doing this.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well one thing thats sticks out initially is you are calling grd.Rebind()... Why is this being called? Disable all the extra methods and take them out of your aspx code and on your btnExport_Click event try to add just the following code:
Test this out and see if you can get it to work without all the extras.
grd.MasterTableView.ExportToExcel();
Test this out and see if you can get it to work without all the extras.
ASKER
Initially I did not have grd.Rebind() method, when It did not work I added it to the button click method, but still it is not working
ASKER
Those link helped me partially, I figured out what the problem was by myself.
ASKER
Below is the code I am working on, please let me know the required changes to be made.
Open in new window