Hi,
I'm using client-side filtering after the kendo grid is rendered and I wanted to export to excel the filtered data in some situations.
I tried using $("#reportResultsGrid").data("kendoGrid").dataSource.view() and that gives me the current object of what I want to export to excel, but I can't figure out how to use the saveAsExcel() method to export what's in that current view() in the kendo grid. I can console log it, but I just can't figure out how to export the filtered data.
My goal originally was to create a custom button in excel toolbar and use that to export the data but, now I'm just using a stand alone button at the top of the page for testing purposes. Ideally I would like to create a button in the excel toolbar that just exports whatever is in the current kendo grid view.
Below is as far as I've figured out.
$('#testSaver').on("click", function () {
$("#reportResultsGrid").data("kendoGrid").dataSource.view()
console.log(clientSideFilterData);
});