vtfuture / BForms

Bootstrap Forms for ASP.NET MVC
MIT License
62 stars 33 forks source link

determining whether the Pager was triggered by a new search/quicksearch or the pager #285

Open ssteiner opened 7 years ago

ssteiner commented 7 years ago

Hi

I've implemented a caching mechanism for my IQueryables as they are on a remote system. That works fine, but now I need to be able to differentiate between the Pager controller method being hit by a new search or quicksearch, or just by the user moving between pages.

The easy way would be to simply put your BsGridRepositorySettings in the Session and compare them. However, the Session may not be used for this purpose in this project (the GUI should support multiple open pages in the same browser).. so I'm wondering if there's any method to determine whether the user started a new search/quicksearch when the Pager is being hit, or if the user is just moving around in the current search results.

Thanks