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

[Solved] custom toolbar with excel

2 Answers 1023 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 05 Jan 2015, 08:00 PM
How can I have both custom and excel and pdf toolbar together?  Thanks.

toolbar: kendo.template($('#toolbar-template').html()),

toolbar: ["excel", "pdf"],

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 06 Jan 2015, 10:14 AM

Hello Bertha,

When a toolbar template is used, the included toolbar commands are ignored and only the template is rendered. In order to include the pdf/excel export commands, you should directly include their markup to the template.
E.g.

<a class="k-button k-button-icontext k-grid-excel" href="#"><span class="k-icon k-i-excel"></span>Export to Excel</a>
<a class="k-button k-button-icontext k-grid-pdf" href="#"><span class="k-icon k-i-pdf"></span>Export to PDF</a>

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bertha
Top achievements
Rank 1
answered on 06 Jan 2015, 02:39 PM
Thanks.
Tags
Grid
Asked by
Bertha
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Bertha
Top achievements
Rank 1
Share this question
or