While working in a project , my client wants to show the paging in the grid in both in the top of the grid as well as in the bottom of the grid also. As I am using the Telerik grid, it has a property to set while creating the grid.
So here is the code for it:
So here is the code for it:
Happy Coding!.Pageable(p => { p.Style(GridPagerStyles.NextPreviousAndNumeric | GridPagerStyles.PageSizeDropDown);
p.Position(GridPagerPosition.Both); // this line will do the Magic p.PageSize(int.Parse(ViewBag.PageSize ?? "50"), new[] { 10, 20, 50 }); }).Sortable()
No comments:
Post a Comment