11 references to Ascending
Microsoft.AspNetCore.Components.QuickGrid (5)
Columns\GridSort.cs (2)
121
new SortedProperty { PropertyName = ToPropertyName(_firstExpression.Item1), Direction = (_firstExpression.Item2 ^ ascending) ? SortDirection.Descending : SortDirection.
Ascending
}
128
result.Add(new SortedProperty { PropertyName = ToPropertyName(thenLambda), Direction = (thenAscending ^ ascending) ? SortDirection.Descending : SortDirection.
Ascending
});
QuickGrid.razor.cs (1)
264
SortDirection.
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)
40
Assert.Equal(SortDirection.
Ascending
, propertyList.First().Direction);
56
Assert.Equal(SortDirection.
Ascending
, propertyList.First().Direction);
72
Assert.Equal(SortDirection.
Ascending
, propertyList.First().Direction);
88
Assert.Equal(SortDirection.
Ascending
, propertyList.First().Direction);
104
Assert.Equal(SortDirection.
Ascending
, propertyList.First().Direction);
140
Assert.Equal(SortDirection.
Ascending
, firstProperty.Direction);