I have a grid control which is bound to the model I have passed it in the view (local data):
HireReport.cshml
@model ReportingPortalWeb.Models.HireReportViewModel
@(Html.Kendo().Grid(Model.StockReport)
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.SohQty).Title("Quantity").Visible(Model.StockReport.Sum(t => t.SohQty) > 0);
...
I want to add the export to excel function but this seems limited to remote data
.ToolBar(tools => tools.Excel())
...
Is there no way to bind this to the local model data?