This is a migrated thread and some comments may be shown as answers.

Alter behavior for export toolbar button?

3 Answers 189 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Iron
Iron
Chris asked on 21 Jun 2013, 08:09 PM
We'd like to replace the default functionality for the Excel export button on the HTML report viewer.  We'd like to write a custom method for each report that will export the underlying data to spreadsheet in a format that is conducive to sorting, totalling, etc. via Excel.  We don't need to export the headings, totals, etc.

Can we override the default behavior? 

 

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Jun 2013, 02:16 PM
Hi Chris,

Telerik Reporting is extensible and if required you can implement a custom Custom rendering extension. Just implement accordingly the IRenderingExtension interface. For an example you can use our Excel rendering extension source code. That is available for download from your account download page.

You can register your rendering extension in the report viewer with the following configuration:

<Telerik.Reporting>
  <Extensions>
    <Render>
      <Extension name="MyExcel" description="My Excel export" type="MyNamespace.MyClass, MyAssembly"/>
    </Render>
  </Extensions>
</Telerik.Reporting>

For more information please check the Rendering Extensions help article.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Steven
Top achievements
Rank 1
answered on 10 Jul 2013, 07:59 PM
Hello,

I have the exact same need as Chris does.   May I please get a copy of the Excel rendering extension source code, too?

0
Stef
Telerik team
answered on 15 Jul 2013, 12:07 PM
Hi Steven,

You can also download Telerik Reporting source code after logging into your account and navigating to Products & Subscriptions - DevCraft - Download - Reporting - Browse all product files - Source Code.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Iron
Iron
Answers by
Peter
Telerik team
Steven
Top achievements
Rank 1
Stef
Telerik team
Share this question
or