2
進出口新劍道UI,所以我必須通過MVC一個下面的代碼,所以我想點擊,然後點擊一個按鈕 - >導出到Excel基地listresult如何通過Kendo UI在MVC上導出Excel?
@(Html.Kendo().Grid(Model)
.Name("listResult")
.Columns(columns =>
{
columns.Bound(c => c.Index).Title(ResourceLabel.COMMON_SN);
columns.Bound(c => c.Act..);
columns.Bound(c => c.Job...;
columns.Bound(c => c.Sub...);
columns.Bound(c => c.R...);
columns.Bound(c => c.Status);
columns.Bound(c => c.Job..);
columns.Bound(c => c.Id).Title("Action").ClientTemplate("<div class='form-inline action'>" +
"#=RenderAction(data)#" +
"</div>");
//columns.Bound(c => c.Id).Title("Action").ClientTemplate("#=RenderAction(data)#");
})
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.ServerOperation(true)
.Read(read => read.Action("Search", "...."))
)
)