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,
    Chance


  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2157 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.
    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top