This question is locked. New answers and comments are not allowed.
Posted 2 days ago (permalink)
Hi,
Paging via server side doesn't work for me.
Clicking on another page index, do nothing.
Here is the grid declaration fron index.aspx file.
What am I missing? Should I transfer the currentPage (=index of page) to the select event, which fires when clicking on another page? if yes, how?
appreciate your help.
Ravit
Paging via server side doesn't work for me.
Clicking on another page index, do nothing.
Here is the grid declaration fron index.aspx file.
What am I missing? Should I transfer the currentPage (=index of page) to the select event, which fires when clicking on another page? if yes, how?
appreciate your help.
Ravit
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.PrefixUrlParameters(false)
.Pageable(paging => paging.PageSize(10).Style(GridPagerStyles.NextPreviousAndNumeric).Position(GridPagerPosition.Bottom))
.DataKeys(keys => keys.Add(c => c.CompanyId))
.ToolBar(commands => commands.Custom().Text(
"Add New Company").Action("Index", "Company", insertRoute).ButtonType(GridButtonType.ImageAndText).ImageHtmlAttributes(new
{
style =
"margin-left:0"
}))
.DataBinding(dataBinding => dataBinding.Server()
.Insert(
"Insert", "Company")
.Select(
"Index", "Region")
.Update(
"Save", "Company")
.Delete(
"Delete", "Company"))