Click here to Skip to main content
14,208,035 members
Rate this:
 
Please Sign up or sign in to vote.
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)



Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190612.1 | Last Updated 1 Feb 2014
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100