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:

example


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -