jquery-bootgrid

How to deal with jQuery bootgrid request data in MVC

杀马特。学长 韩版系。学妹 提交于 2019-12-06 05:57:49
I'm having some issues with implementing a jQuery bootgrid using ASP.Net MVC. I can't implement the sorting, searching, pagination etc. functionality. This is what I have in my controller: public JsonResult IndexJson(BootgridRequestData model) { var contacts = (from x in db.ContactSet select new { x.AccountId, x.FirstName, x.LastName, x.FullName, x.JobTitle, x.ParentCustomerId, x.EMailAddress1, x.Telephone1, x.MobilePhone, x.Fax, x.GenderCode, x.BirthDate }).ToList(); // This tResult throws a Non-invocable member cannot be used like a method error. var tResult = BootgridResponseData<JsonResult