Browse Source

Merge pull request #20952 from javedahmedone/dev

#20923 - AbpCrudPageBase sorting is implemented on SortIndex
pull/20976/head
maliming 1 year ago
committed by GitHub
parent
commit
22ee4f2b0e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

1
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

@ -319,6 +319,7 @@ public abstract class AbpCrudPageBase<
{
CurrentSorting = e.Columns
.Where(c => c.SortDirection != SortDirection.Default)
.OrderBy(c => c.SortIndex)
.Select(c => c.SortField + (c.SortDirection == SortDirection.Descending ? " DESC" : ""))
.JoinAsString(",");
CurrentPage = e.Page;

Loading…
Cancel
Save