【发布时间】:2014-10-22 23:54:49
【问题描述】:
我尝试在 Kendo Grid 的工具栏上创建一个自定义命令按钮。代码是这样的
Html.Kendo().Grid...
.ToolBar(commands => commands.Custom().Text("Export").Action("ExportAthletePageToExcel", "ExportExcelButton", new { selectedSportId = Model.CurrentSport, yearId = Model.CurrentYear }))
...
Controller is like,
public ActionResult ExportAthletePageToExcel(DataSourceRequest request, string selectedSportId, string yearId)
...
它适用于 selectedSportId 和 yearId 等参数,除了请求没有正确的网格信息(过滤器、排序、页面等)。我想知道是什么问题。
谢谢。
【问题讨论】:
标签: c# .net kendo-ui kendo-grid kendo-asp.net-mvc