I’m trying to load an index view (pjax and Gridview) within a bootstrap modal window and allow the user to perform searches/filters. The view loads properly, but when the user performs any type of filter the main page is reloaded to the search page instead of just refreshing the modal. Can anyone offer guidance on the matter or point me to an example to learn from?
So close, but still one problem that I can’t seem to understand.
So I have the modal working, filtering no longer redirects the main page (well sort of, see below), but.
The first time I open the modal and perform a filter, it works fine.
The second time, it works, but I can see that 2 filter requests are sent, the first fails, and the second returns correctly.
The third time, I see 3 requests, and then the page is redirected.
Why are the requests accumulating based on the number of times the modal is opened? How can I get around this?