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,
AllowSorting=true,
AllowPaging=true,
PageCount=5,
PageSize=10,
PagingSortingMapper="PagingAction",
Caption = "Product List"
};
ViewData["GridModel"] = model;
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult PagingAction(PagingParams args)
{
IEnumerable data = new NorthwindDBDataContext().Products.ToList();
return data.GridActions();
}
Please refer the sample from the below link.
http://files.syncfusion.com/support/grid_mvc/presale/P511/Mvc_SampleGrid.zip.Please let me know if you have any concerns.
Regards,
M. Balaji.