Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting & Filtering: Expose Methods to Replace ItemsSource #30

Open
TPCharts opened this issue Jul 22, 2024 · 1 comment
Open

Sorting & Filtering: Expose Methods to Replace ItemsSource #30

TPCharts opened this issue Jul 22, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@TPCharts
Copy link

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.

@TPCharts TPCharts added the enhancement New feature or request label Jul 22, 2024
@w-ahmad w-ahmad added this to the v1.3.0 milestone Aug 15, 2024
@w-ahmad
Copy link
Owner

w-ahmad commented Aug 16, 2024

@TPCharts thank you for your proposal.

I believe providing custom sorting would not be as difficult as implementing custom filtering. Custom filtering could be a challenging task because it would involve filter flyout events and items manipulation. if you have any suggestions how it can be implemented, feel free to share 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants