I have tried to find som help on why i can't use this binding feature to my excel export part of the mvc grid compoment.
var grid = $("#grid").data("kendoGrid");
grid.bind("excelExport", function (e) {
e.workbook.fileName = "Grid.xlsx";
});
grid.saveAsExcel();
This i my first beginning of these binding options, and the goal is to use them to hide/show during export.
To get to this goal, is need the first part solved first- my binding fails in the bold line in script performance on website.
The error is:Uncaught TypeError: Cannot read property 'bind' of undefined
Whay cant i use this bind to capure the excelExport event ??
regards
Allan