WinUI.TableView
WinUI.TableView copied to clipboard
Sorting & Filtering: Expose Methods to Replace ItemsSource
Thanks for the fantastic control!
Is your feature request related to a problem? Please describe.
Sometimes there are too many items to render in the table.
To work around this, I restrict the number of items shown in the table (apply my own default filtering & sorting, then use sourceCollection.Take(100).
However, this means that the table's sorting and filtering functions aren't helpful in many cases because the intention is to filter the entire item source. Sorting and filtering through the table's functionality only applies to the shown items (the top 100, in this case).
Describe the solution you'd like
A way to filter and sort the entire source collection from the table without needing to write additional filters above the table that manually replace the table's ItemSource.
Describe alternatives you've considered
I looked through the source code to see if there were any events raised on filtering or sorting that I could hook into.
My idea was to provide custom sorting and filtering functions and then replace the table's ItemSource with those filtered items.
However, if these events are exposed in a way that they can be hooked into, I couldn't figure it out.