Hi Benny,
Thank you for choosing Syncfusion Products.
The Paging is handled by the Grid automatically. The paging request is sent to the action result specified in the PagingSortingMapper and that would return an actionresult of type GridHtmlActionResult.
Please find the code snippet below
[Controller]
GridPropertiesModel gridModel = new GridPropertiesModel()
{
DataSource = rawAssets,
PagingSortingMapper = "PagingAction",
Caption = "Assets",
AllowPaging = true,
PageSize = 10,
AllowSorting = true,
HeaderText = { "Id", "Name", "Identifier", "Locked By" },
};
AcceptVerbs(HttpVerbs.Post)]
public ActionResult getSort()
{
var sortAction = new GridHtmlActionResult();
//set the datasource
sortAction.GridModel.DataSource = rawAssets;
return sortAction;
}
Note:
The sample should be running from the full path
eg:
http://localhost:52212/home/indexGenerally the default application will look like this and this case it will not page.
http://localhost:52212/Default.aspxMVC grid is not dependent on Linq and works with any kind of IEnumerable data source.
Please let us know if this helps.
Regards,
Balaji.