We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting /paging grid with params in action ?

Thread ID:





90955 Oct 26,2009 04:53 PM UTC Oct 27,2009 07:48 PM UTC ASP.NET MVC (Classic) 1
Tags: Grid
Asked On October 26, 2009 04:53 PM UTC

I made a view with grid control and it works fine with sorting and paging but only when action in controller that provides data to the grid has no parameters. When it has one parameter, sorting and paging operations go to the same method instead of sorting/paging action. Could anyone provide such an example. Perhaps the routing must be changed?

Balaji M [Syncfusion]
Replied On October 27, 2009 07:48 PM UTC

Hi lukasz,

Thank you for your interst in Syncfusion products.

I have created a simple sample to this issue and in this sample Grid Paging/Sorting functions works when the

paging/sorting action has one parameter.

Please refer the following code snippet to achieve this.
public ActionResult Index()
GridPropertiesModel model = new GridPropertiesModel
DataSource =new NorthwindDBDataContext().Products.ToList(),
AutoFormat = Syncfusion.Mvc.Shared.Skins.Office2007Silver,
Caption = "Product List"

ViewData["GridModel"] = model;
return View();

public ActionResult PagingAction(PagingParams args)
IEnumerable data = new NorthwindDBDataContext().Products.ToList();
return data.GridActions();

Please refer the sample from the below link.

Please let me know if you have any concerns.

M. Balaji.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon