Hi I´m using the Kendo.Mvc.dll version 2014.1.318.440, I have some problems adding the action of Export to Excel on my grid,
Does not recognize the tools.Excel(), it is possible to use this statement with this Kendo version, or am I missing a reference for example a js file needed to bound??
Here's the code of the grid.
@(Html.Kendo().Grid<Project.Models.GridModel>()
.Name("Grid")
.Scrollable()
.EnableCustomBinding(true)
.HtmlAttributes(new { style = "height:auto;" })
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(x => x.NumOP);
})
.ServerOperation(false)
.PageSize(20)
.Read(read => read.Action("LoadGrid", "GridController"))
)
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Name").Width(80);
columns.Bound(p => p.Description).Title("Description").Width(200);
columns.Bound(p => p.Amount).Title("Amount").Format("{0:0,0.0}").Width(100);
})
.ToolBar(tools => tools.Excel())
.Excel(excel => excel
.FileName("ExcelFile.xlsx")
.ProxyURL(@UrlAction("Excel_Export_Save", "CreditosActivos"))
)
)
Thanks for help