Paging in Webgrid in MVC5
Hello.I have written below code in View to bind the data.
@{
if (ViewBag.dt != null)
{
var grid = new WebGrid(source: ViewBag.dt);
@grid.GetHtml(htmlAttributes: new { id = "DataTable" }, columns: grid.Columns(
grid.Column("NotificationType"),
grid.Column("NextActionTaker"),
grid.Column("Staus"),
grid.Column("CreatedDate")
@*,
//grid.Column("Id"),
// grid.Column("HardCodeModuleId"),
grid.Column("", header: "ToEdit",
format: @<text>@Html.ActionLink("Edit", "AddEmployee", new { Id = item.Id })</text>),
grid.Column("", header: "Delete",
format: @<text>@Html.ActionLink("Delete", "DeleteEmployee", new { Id = item.Id })</text>)*@
));
}
}
Here, I have done with the paging, but it shows values like 1 2 3 4 >>> for paging.
Instead, I want paging with buttons, Next and Previous.
How can i do that.?