Hi,
I have a radgrid that need paging. The problem is that it can only display 1 page even if there are more than 1 page. Also on right side displaying "0 item in 1 page" is not correct. Also I want to add feature that can go to specific page entered. The problem is in image "Pager_problem.jpg". The desired pager style is in image "PagerStyle.jpg". Thanks. The code is:
I have a radgrid that need paging. The problem is that it can only display 1 page even if there are more than 1 page. Also on right side displaying "0 item in 1 page" is not correct. Also I want to add feature that can go to specific page entered. The problem is in image "Pager_problem.jpg". The desired pager style is in image "PagerStyle.jpg". Thanks. The code is:
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
style
=
"margin-left:5px"
AllowPaging
=
"True"
AllowCustomPaging
=
"True"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
DataSourceID
=
"SqlDataSource1"
GridLines
=
"None"
>
<
MasterTableView
DataSourceID
=
"SqlDataSource1"
AutoGenerateColumns
=
"False"
PagerStyle-Position
=
"TopAndBottom"
PagerStyle-AlwaysVisible
=
"true"
PagerStyle-Mode
=
"NextPrevAndNumeric"
PageSize
=
"10"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"OrderDate"
DataType
=
"System.DateTime"
HeaderText
=
"Order Date"
SortExpression
=
"OrderDate"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"OrderDate"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FirstName"
HeaderText
=
"First Name"
SortExpression
=
"FirstName"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"FirstName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Email"
HeaderText
=
"Email"
SortExpression
=
"Email"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"Email"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"GreetingCode"
HeaderText
=
"Greeting Code"
SortExpression
=
"GreetingCode"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"GreetingCode"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ChildFirstName"
HeaderText
=
"Child's FirstName"
SortExpression
=
"ChildFirstName"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"ChildFirstName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ChildLastName"
HeaderText
=
"Child's LastName"
SortExpression
=
"ChildLastName"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"ChildLastName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ChildGender"
HeaderText
=
"Child's Gender"
SortExpression
=
"ChildGender"
CurrentFilterFunction
=
"Contains"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"ChildGender"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>