New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Customize the Excel Export Filename of the Grid by Adding Current Date and Time


Product Grid for Progress® Telerik® UI for ASP.NET MVC


How can I add the current date and time to the Excel export filename of the Grid?


Use the excelExport event which has the workbook in its event data to rename it.

With the help of the kendo.toString() method or another way to format the date, concatenate the date to the filename.

    .Columns(columns =>
        columns.Bound(e => e.OrderID);
        columns.Bound(e => e.Freight);
    .ToolBar(t => 
    .DataSource(dataSource => dataSource
        .Transport(transport =>
           transport.Read(read => read.Url(""))

    function onExcelExport(e) {
        e.workbook.fileName = kendo.toString(new Date, "dd/MM/yyyy HH:mm") + " Grid.xlsx";
In this article