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

Setting to not search on render #42

Open
programcsharp opened this issue Mar 25, 2015 · 0 comments
Open

Setting to not search on render #42

programcsharp opened this issue Mar 25, 2015 · 0 comments

Comments

@programcsharp
Copy link
Owner

Sometimes the query is heavy particularly without criteria, so it would be good to be able to only use filterform mode and execute the grid method when critieria is entered and search is clicked rather than on first render.

Right now I'm doing this in the grid method:

    if (ControllerContext.ParentActionViewContext != null)
        return new GriddlyResult<TravelEntriesModel>(new List<TravelEntriesModel>().AsQueryable());

Works, but it would be better to have a GriddlySettings property for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants