No ElementExporting when exporting to Excel via RadSpreadsheet

2 posts, 0 answers
  1. Jay
    Jay avatar
    8 posts
    Member since:
    Feb 2014

    Posted 11 Jun 2014 Link to this post

    Hi there,

    we have a converter in place hooked up to the ElementExporting event so our CSV export is properly converted.

    Using the XlsxFormatProvider and RadSpreadsheet doesn't trigger that event to be fired so our Excel files are not converted.
    How can exported values be customized in the RadSpreadsheet context?

    Can we somehow use the Html exported by the RadSpreadsheet ?

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 13 Jun 2014 Link to this post

    Hi Jay,

    The ElementExporting event will be raised if you invoke RadGridView.Export method. If this method is not used to export the data, then the event will not be fired.

    I can suggest you one alternative solution exporting with ExportFormat.Html and using HtmlFormatProvider. 
    You can find a demo solution attached. That way the ElementExporting event will be raised.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top