asp.net mvc 3 - Razor webgrid ajax paging and sorting -
i'm trying learn how use razor webgrid in mvc3. how ajaxupdatecallback parameter work?
the ajaxupdatecallback name of javascript function called after server call complete. title of question regarding paging , sorting webgrid this...
@{ var grid = new webgrid(canpage: true, rowsperpage: thiscontroller.pagesize, cansort: true, ajaxupdatecontainerid: "grid"); grid.bind(model.employees, rowcount: model.totalrecords, autosortandpage: false); grid.pager(webgridpagermodes.all); @grid.gethtml(htmlattributes: new { id="grid" }, columns: grid.columns( grid.column(format: (item) => html.actionlink("edit", "edit", new { employeeid = item.employeeid })), grid.column("fullname"), grid.column("title") )); } i have full example here if you'd see it:
Comments
Post a Comment