Hello. I am trying to have my "displaying 1 of 10" element of the RadDataPager float all the way to the right. It doesn't seem proper to use hardcoded padding when the width of the page numbers can vary. Is there a good solution to this? Thanks! :-)
Code:
Code:
<
LayoutTemplate
>
<
telerik:
ID
=
"RadDataPagerTop"
runat
=
"server"
IsTotalItemCountFixed
=
"True"
Skin
=
"Windows7"
Width
=
"752px"
CssClass
=
"Custom"
>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
<
telerik:RadDataPagerTemplatePageField
>
<
PagerTemplate
>
<
div
style
=
"float: right"
>
Displaying items
<
asp:Label
runat
=
"server"
ID
=
"CurrentPageLabel"
Text="<%# Container.Owner.StartRowIndex + 1 %>" />
to
<
asp:Label
runat
=
"server"
ID
=
"TotalPagesLabel"
Text="<%# (Container.Owner.TotalRowCount < Container.Owner.StartRowIndex + Container.Owner.PageSize)?Container.Owner.TotalRowCount:Container.Owner.StartRowIndex + Container.Owner.PageSize %>" />
of
<
asp:Label
runat
=
"server"
ID
=
"TotalItemsLabel"
Text="<%# Container.Owner.TotalRowCount %>" />
</
div
>
</
PagerTemplate
>
</
telerik:RadDataPagerTemplatePageField
>
</
Fields
>
</
telerik:RadDataPager
>