0
我想刪除列columns.Bound(c => c.Id)在excel中點擊按鈕導出。怎麼做???如何在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._Type);
columns.Bound(c => c.__Name);
columns.Bound(c => c.S__Date);
columns.Bound(c => c.Region);
columns.Bound(c => c.Status);
columns.Bound(c => c._Name);
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()
.AutoBind(false)
.ToolBar(toolbar => toolbar.Excel())
.Excel(excel => excel.FileName("P_File.xlsx")
.ProxyURL(Url.Action("Excel_Save", "Search")))