Click here to Skip to main content
14,825,880 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using ASP.NET MVC4 with Razor controls and have 3 webgrids on single page. Each webgrid is visible under 3 different buttons.
In implemention,
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.
Posted
Updated 1-Feb-14 1:34am
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900