I am using ASP.NET MVC4 with Razor controls and have 3 webgrids on single page. Each webgrid is visible under 3 different buttons.
1. webgrids are placed in different partial views.
2. all webgrids' ajax mode is enabled using "ajaxUpdateContainerId".
3. 3 separate actions are written in single controller, to get data for sorting/pagination.
4. I am binding all 3 webgrids on fisrt load, so 3-buttons doesn't require to perform AJAX request, but sort/paging require to fetch the data.
Problem is that, it works when I am trying with single webgrid, but when tried for all grids using ajaxupdate, program control executes in all 3 actions. It calls that every action method and constructs those 3 webgrid lists.
Here I would like to call specific action method for individual webgrid's sort/pagination click. How can I set the specific actions?
Thanks in advance.