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

Provide option to not throw exception when Sort option is not valid #61

Open
akamud opened this issue Jan 24, 2023 · 1 comment
Open
Labels
autofilterer enhancement New feature or request

Comments

@akamud
Copy link

akamud commented Jan 24, 2023

I would like to just ignore sorting when an invalid sort option in provided. Today two possible exceptions are thrown here and here.

I would like to have an option to opt-out of throwing an exception.

@akamud akamud changed the title Provide option to not throw exception when Sort options is not valid Provide option to not throw exception when Sort option is not valid Jan 24, 2023
@akamud
Copy link
Author

akamud commented Jan 24, 2023

To anyone getting this, right now what I'm doing to workaround this, is to provide a default sorting option by overriding the ApplyOrder in my filter. That way I see what are the possible sorts configured, and if a field that is not in that list is passed, I change the Sort field to be my default value.

@enisn enisn added autofilterer enhancement New feature or request labels Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autofilterer enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants