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

Forced filter or conditionnal sort ? #1028

Open
BenjaminOwlient opened this issue May 31, 2016 · 0 comments
Open

Forced filter or conditionnal sort ? #1028

BenjaminOwlient opened this issue May 31, 2016 · 0 comments

Comments

@BenjaminOwlient
Copy link

BenjaminOwlient commented May 31, 2016

Hello,

I have a model whose certain column sorting would be useful, but as these columns are not indexed I don't want the user to use this sorting unless a filtering (which is on a indexed column itself) has been applied.
So I wonder if they are ways to :

  • Not display any data unless a specific filter has been used ?
    Or
  • Make the sort option conditionnal (for example with a closure passing current query builder) ?

Or any suggestion to solve my problem.

Thank you.

@BenjaminOwlient BenjaminOwlient changed the title Forced filter or conditionnal filter ? Forced filter or conditionnal sort ? Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant