We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 312e4ea commit ebe7309Copy full SHA for ebe7309
SimpleDataGrid/Pagination/PagedCollection.cs
@@ -388,6 +388,16 @@ private void ApplyFiltering(bool maintainPosition = false)
388
_currentPage = 0;
389
}
390
RaiseAllChanged();
391
+
392
+ if (maintainPosition && _filtered.Any())
393
+ {
394
+ _currentPage = Math.Clamp(oldFirstItemIndex / _pageSize, 0, TotalPages - 1);
395
+ }
396
+ else
397
398
+ _currentPage = 0;
399
400
+ RaiseAllChanged();
401
402
403
private static string WildcardToRegex(string pattern)
0 commit comments