This is a migrated thread and some comments may be shown as answers.

[Solved] paging via server side

0 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ravit
Top achievements
Rank 1
ravit asked on 09 Jun 2011, 04:41 PM
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 

<%

 

= 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"))

 


Tags
Grid
Asked by
ravit
Top achievements
Rank 1
Share this question
or