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

Relocate Export toolbar

3 Answers 203 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 19 Sep 2017, 09:43 PM
Running ASP.NET MVC grid.  Is there a way to reposition the export toolbar instead of always being located at the top?  Either at the bottom or a way to invoke the export function from an external link/button?

3 Answers, 1 is accepted

Sort by
0
Accepted
Preslav
Telerik team
answered on 20 Sep 2017, 04:00 PM
Hello Erik,

Based on your post, I believe that the best approach to achieve the desired result is initiating the Excel/PDF export of the Grid from an external button.

To achieve that, invoke the saveAsExcel or the saveAsPDF methods from the relevant buttons.
For a runnable example, check this Dojo: https://dojo.telerik.com/OHUkU


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Oli
Top achievements
Rank 1
answered on 07 Dec 2017, 09:29 AM

With this approach, how is it possible to use the column template as the value for the cell (as outlined in the below link)?

https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/column-template-export

The approach there seems to depend upon the default toolbar position as the function uses the e parameter which you don't have access to when using the saveAsExcel method.

0
Konstantin Dikov
Telerik team
answered on 11 Dec 2017, 08:24 AM
Hi Oli,

The excelExport event will fire with the same parameters when it is called manually from the Grid`s API, so you should be able to use the same approach as in the HowTo article. If any further assistance is needed, could you please share a dojo example demonstrating the problematic behavior, so we can debug it locally?

Best Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Erik
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Oli
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or