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

Can I trigger grid events with an external JS call?

1 Answer 197 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chance
Top achievements
Rank 2
Chance asked on 09 Dec 2014, 07:38 PM
I would like to trigger the "excelExport" feature with a custom icon outside of the data grid. Is this possible?
I do not want to use the toolbar and a button...

Also is there a way to export just a simple .CSV version rather then the .xls? I already have a custom function to do this, but was wondering if it is possible with the new export features.

Thanks in advance,
Chance


1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 10 Dec 2014, 03:07 PM
Hello Chance,


In the current case you could invoke the saveAsExcel method of the Grid API.
E.g.
var grid = $("#grid").data("kendoGrid");
grid.saveAsExcel();

Regarding the second question, currently there is no built in functionality for exporting to CSV.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Chance
Top achievements
Rank 2
Answers by
Dimiter Madjarov
Telerik team
Share this question
or