Hi Dario,
The Telerik UI Grid for ASP.NET Core can be programmatically exported via the excelExport() method. More information could be found in the article below:
https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/excelexport
Within the click event handler of a button obtain an instance of the Telerik UI Grid and export it programmatically. Here is an example:
@(Html.Kendo().Button()
.Name("primaryTextButton")
.HtmlAttributes( new {type = "button", @class = "k-primary" } )
.Content("Export Grid")
.Events(e => e.Click("exportGrid")))
Function for the Excel export:
function exportGrid() {
var grid = $("#Grid").data("kendoGrid");
grid.saveAsExcel()
}
I hope this information helps. I will be glad to assist you further.
Regards,
Anton Mironov
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.