如何在KENDO中为网格中的订单记录添加更多列

时间:2017-12-20 17:37:51

标签: kendo-asp.net-mvc

问题可能很简单,但我没有找到示例或文档如何按KENDO网格的多列进行排序。 id| time| battery 54 | 2017-12-12 09:50:04.402775+00 | 100 54 | 2017-12-12 09:40:04.618926+00 | 100 54 | 2017-12-12 09:30:04.11399+00 | 100 54 | 2017-12-12 09:20:03.906716+00 | 100 54 | 2017-12-12 09:10:03.955133+00 | 100 54 | 2017-12-12 09:00:04.678508+00 | 100 54 | 2017-12-12 08:50:03.733471+00 | 100 54 | 2017-12-12 08:40:03.65688+00 | 100 54 | 2017-12-12 08:30:04.260608+00 | 100 54 | 2017-12-12 08:20:03.98387+00 | 100 54 | 2017-12-12 08:10:04.164129+00 | 98 54 | 2017-12-12 08:00:04.597976+00 | 98 54 | 2017-12-12 07:50:04.501231+00 | 98 54 | 2017-12-12 07:40:04.441531+00 | 98 54 | 2017-12-12 07:30:04.310876+00 | 98 54 | 2017-12-12 07:20:04.317241+00 | 98 54 | 2017-12-12 07:10:03.856432+00 | 67 54 | 2017-12-12 07:00:03.628862+00 | 67 54 | 2017-12-12 06:50:03.868495+00 | 67 54 | 2017-12-12 06:40:04.490324+00 | 67 54 | 2017-12-12 06:30:03.83739+00 | 67 54 | 2017-12-12 06:20:03.817014+00 | 67 54 | 2017-12-12 06:10:04.081174+00 | 29 54 | 2017-12-12 06:00:04.178765+00 | 29 data_type -------------------------- integer timestamp with time zone integer 文件中的部分是这样的:

.ClientDetailTemplateId( “地址”)     .DataSource(dataSource => dataSource.Ajax()         .Model(model => model.Id(m => m.Cid))         .Read(read => read.Action(“SelectAddr”,“Addr”)。数据(“get_addr_grid_params”))         .PageSize(20)         .Sort(sort => sort.Add(m => m.zipcode))     )

如何按订单添加一列?

1 个答案:

答案 0 :(得分:1)

我认为你正在寻找这个:

.Sort(x =>
{
x.Add(y=>y.DownloadDate).Descending());
x.Add(y=>y.DueDate).Descending());
}