or
Not to be rendered with the code at run time, this is because i like using 'DotLess' in my projects and i'm used to the way i style the pages using the elements like:.RadMenu_iDefault .rmItem a.rmLink {
padding
:
1px
0
1px
12px
;
}
.RadMenu_iDefault .rmHorizontal .rmItem {
padding
:
2px
0
;
}
.RadMenu_iDefault_rtl .rmItem a.rmLink {
padding
:
1px
12px
1px
0
;
}
.RadMenu_iDefault .rmVertical .rmItem a.rmLink {
padding
:
1px
12px
;
}
div.RadMenu_iDefault_rtl .rmHorizontal .rmText {
padding
:
0
0
1px
12px
;
}
.Menu_Head{
float
:
right
;
list-style
:
none
;
#Layouts > .FullAutoWidth;
--{}
a {
color
:
#ffffff
;
text-decoration
:
none
;
white-space
:
nowrap
;
display
:
block
;
--{}
&:visited, &:active {
color
:
#ffffff
;
text-decoration
:
none
;
}}
ul {
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
list-style
:
none
outside
none
;
--{}
&:focus, li a:focus {
outline
:
none
;
outline-width
:
0
;
}}}
<
ul
class
=
"rmRootGroup rmHorizontal"
>
<
li
class
=
"rmItem rmFirst"
>
<
ul
class
=
""
>
<
li
class
=
""
>
When setting PageSize in code behind, pager will not navigate past page 1.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dataPager As RadDataPager = DirectCast(lstProduct.FindControl("RadPager1"), RadDataPager)
dataPager.PageSize = 36
<
telerik:RadDataPager
ID
=
"RadPager1"
AllowSEOPaging
=
"true"
SEOPagingQueryPageKey
=
"page"
skin
=
"Office2010Silver"
runat
=
"server"
PagedControlID
=
"lstProduct"
>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
PageButtonCount
=
"7"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
<
telerik:RadDataPagerTemplatePageField
>
<
PagerTemplate
>
<
div
style
=
"float: right"
>
<
b
>Items
<
asp:Label
runat
=
"server"
ID
=
"CurrentPageLabel"
Text="<%# Container.Owner.StartRowIndex+1%>" />
to
<
asp:Label
runat
=
"server"
ID
=
"TotalPagesLabel"
Text="<%# IIF(Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize), Container.Owner.StartRowIndex+Container.Owner.PageSize, Container.Owner.TotalRowCount) %>" />
of
<
asp:Label
runat
=
"server"
ID
=
"TotalItemsLabel"
Text="<%# Container.Owner.TotalRowCount%>" />
<
br
/>
</
b
>
</
div
>
</
PagerTemplate
>
</
telerik:RadDataPagerTemplatePageField
>
</
Fields
>
</
telerik:RadDataPager
>
DataTable dtTable = objTest.ReturnsDataTable();
RadGrid2.DataSource = dtTable;
RadGrid2.DataBind();
GridImageColumn gridImageCol =
new
GridImageColumn();
gridImageCol.ImageUrl =
"/images/stift_icon.gif"
;
GridImageButton gridButton =
new
GridImageButton(gridImageCol);
gridButton.OnClientClick =
"testAlert"
;
RadGrid2.DataBind();
RadGrid2.Columns.Add(gridImageCol);
//RadGrid2.Rebind();
RadGrid2.DataBind();