Kendo asp.net mvc 如何向剑道网格中的订单记录添加更多列
这个问题可能很简单,但我还没有找到如何为剑道网格按多列排序的示例或文档。Kendo asp.net mvc 如何向剑道网格中的订单记录添加更多列,kendo-asp.net-mvc,Kendo Asp.net Mvc,这个问题可能很简单,但我还没有找到如何为剑道网格按多列排序的示例或文档。cshtml文件中的部分如下所示: .ClientDetailTemplateId(“地址”) .DataSource(DataSource=>DataSource.Ajax() .Model(Model=>Model.Id(m=>m.Cid)) .Read(Read=>Read.Action(“SelectAddr”、“Addr”).Data(“get\u Addr\u grid\u params”)) .页面大小(20)
cshtml
文件中的部分如下所示:
.ClientDetailTemplateId(“地址”)
.DataSource(DataSource=>DataSource.Ajax()
.Model(Model=>Model.Id(m=>m.Cid))
.Read(Read=>Read.Action(“SelectAddr”、“Addr”).Data(“get\u Addr\u grid\u params”))
.页面大小(20)
.Sort(Sort=>Sort.Add(m=>m.zipcode))
)
如何在order by中再添加一列?我想您正在寻找以下内容:
.Sort(x =>
{
x.Add(y=>y.DownloadDate).Descending());
x.Add(y=>y.DueDate).Descending());
}