Issue while Exporting To Excel
Hello
I have created a Custom widget in which i am trying to export some data into Excel sheet. For this i have used a method to render gridview as html by following the instructions shown in the link below:
http://geekswithblogs.net/AzamSharp/archive/2005/12/21/63843.aspx
But as our Custom widget is a user control we can not override VerifyRenderingInServerForm () which is a member of Page class.
If i use the code without overriding VerifyRenderingInServerForm() function I get the following error:
" GridView must be placed inside a form tag with runat=“server”. "
As there is already a default Form tag in sitefinity. If i try to add server side Form tag using any method i get the following Exception:
" A page can have only one server-side Form tag .
".
Please suggest anyway to Export data to Excel while using Custom sitefinity widget.
Any help will be appreciated.
Hi Radhika,
Can you please try the solution suggested in our official RadGrid demos for using the Export to Excel functionality?
It does not need subscription to any of the page-specific methods, but rather would use the the RadGrid API.
Please do not hesitate to let us know if any issues persist.
Greetings,
Boyan Barnev
the Telerik team