JqGrid Search and Filter in Asp.net mvc

风格不统一 提交于 2020-01-03 04:25:10

问题


I have read lots of sites about handling searching and filtering in JqGrid but i couldn't find solution which make it simple like this :

[HttpPost]
public JsonResult GetGridData(GridSettings settings)
{
    IQueryable<Room> result = Services.RoomService.GetList();

    var response = Helper.JqGrid.GenerateData(result, settings);

    return Json(response);
}

is it possible to have the Helper do the rest(filters, search, multipleSearch, based on types ...) ?? BTW I'm not looking for fluent approach in view and my goal is keep view dynamic and as simple as it can be.

I found this answer so close to what i need but it has been done for asp.net and he changed some default parameter names in jqgrid definition.

thank you

来源:https://stackoverflow.com/questions/24020470/jqgrid-search-and-filter-in-asp-net-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!