代码拉取完成,页面将自动刷新
You can enable sorting for all columns of a grid using the Sortable method of the Grid object:
@await Html.Grid(Model).Columns(columns =>
{
columns.Add(foo => foo.Title);
columns.Add(foo => foo.Description);
}).Sortable().RenderAsync()
In this case you can select sorting pressing the column name on just one column at a time.
Sorting at grid level has precendence over sorting defined at column level.
You can also configure extended sorting using the ExtSortable method of the Grid object:
@await Html.Grid(Model).Columns(columns =>
{
columns.Add(foo => foo.Title);
columns.Add(foo => foo.Description);
}).ExtSortable(true).RenderAsync()
In this case you can drag the column title and drop it on the sorting area. You can add multiple columns at a time and select if sorting is ascending or descending column by column.
This is an example of a table of items using extended sorting:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。