11 references to Ascending
Microsoft.AspNetCore.Components.QuickGrid (5)
Columns\GridSort.cs (2)
121new SortedProperty { PropertyName = ToPropertyName(_firstExpression.Item1), Direction = (_firstExpression.Item2 ^ ascending) ? SortDirection.Descending : SortDirection.Ascending } 128result.Add(new SortedProperty { PropertyName = ToPropertyName(thenLambda), Direction = (thenAscending ^ ascending) ? SortDirection.Descending : SortDirection.Ascending });
QuickGrid.razor.cs (1)
264SortDirection.Ascending => true,
SortDirection.cs (2)
13/// the sort order will automatically toggle between <see cref="Ascending"/> and <see cref="Descending"/> on successive calls, and 14/// resets to <see cref="Ascending"/> whenever the specified column is changed.
Microsoft.AspNetCore.Components.QuickGrid.Tests (6)
GridSortTest.cs (6)
40Assert.Equal(SortDirection.Ascending, propertyList.First().Direction); 56Assert.Equal(SortDirection.Ascending, propertyList.First().Direction); 72Assert.Equal(SortDirection.Ascending, propertyList.First().Direction); 88Assert.Equal(SortDirection.Ascending, propertyList.First().Direction); 104Assert.Equal(SortDirection.Ascending, propertyList.First().Direction); 140Assert.Equal(SortDirection.Ascending, firstProperty.Direction);