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

Ability to specify default Grid Configuration values #62

Open
Judder opened this issue May 6, 2016 · 2 comments
Open

Ability to specify default Grid Configuration values #62

Judder opened this issue May 6, 2016 · 2 comments

Comments

@Judder
Copy link

Judder commented May 6, 2016

Would be great to give Grid Configuration the ability to have default values, so that the initial run of any report doesn't select the complete data set.

For example adding a date filter with

{"filterable": {"Created At": "adminhtml/widget_grid_column_filter_date"}}

could have something like (pseudo code)

{"filterable": {"Created At": "adminhtml/widget_grid_column_filter_date"}}
{"defaults": {"Created At":{"From":"01/05/2016","To":"01/06/2016"}}}
@peterjaap
Copy link
Collaborator

I think this it the responsibility of the query, not the grid configuration.

@Judder
Copy link
Author

Judder commented Jul 5, 2016

I agree, but I wonder how you could have a default LIMIT set on a query, and then also use the filtering from the Grid to remove this when needed

For example select everything by default, add a limit of 1000

However if a date range is set, then remove the 1000 limit

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

2 participants