Closed redowl3 closed 5 years ago
@redowl3
It depends on which DataAdapter you are using if you using CollectionDataAdapter you just need for your columns which you want to allow sorting use configuration method
builder.Property(/* your property expression */)
.IsSortable();
If you are using LazyDataAdapter you also must provide into controller action method query parameters SortExpression and SortDescending. You can use for query paramters Dto object FlexGridQueryDto which FlexGrid provide. After that you must sort items. Example Controller link is in commet above.
Thanks both for the responses. @Mewriick is there any way to enable sorting for all columns without specifying each column individually?
@redowl3
Unfortunately now there is no possibility to enabled sorting for all columns. I will add this feature.
@redowl3 I add builder method that allow enable sorting for all columns on EntityTypeBuilder<TEntity>
builder
My project is client side hosted in ASP.NET Core