Can I trigger grid events with an external JS call?

2 posts, 0 answers
  1. Chance
    Chance avatar
    12 posts
    Member since:
    Mar 2014

    Posted 09 Dec 2014 Link to this post

    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,

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2213 posts

    Posted 10 Dec 2014 Link to this post

    Hello Chance,

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

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

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top