1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Issue while Exporting To Excel

Issue while Exporting To Excel

2 posts, 0 answered
  1. Radhika
    Radhika avatar
    8 posts
    Registered:
    31 Oct 2011
    16 Aug 2012
    Link to this post
    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.




  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    21 Aug 2012
    Link to this post
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered