RadDataPager Next Previous buttons

2 posts, 0 answers
  1. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 06 May 2010 Link to this post

    Is there a way to change the image buttons to Text links for next, previous, first and last?

    <telerik:RadDataPager Skin="Default" AllowSEOPaging="true" SEOPagingQueryPageKey="page" Font-Bold="false" 
                                BackColor="#FFFFFF" BorderColor="#FFFFFF" ID="RadDataPager1" runat="server" PagedControlID="RadListView1" 
                                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                    <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                                    <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                            <div style="float: right; text-align: right; font-family: Arial;"
                                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> 
                                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" /> 
                                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> 
                                                    <br /> 

  2. Rosen
    Rosen avatar
    3247 posts

    Posted 10 May 2010 Link to this post

    Hi Neil,

    I'm afraid that currently the button type of RadDataPagerButtonField cannot be changed. However you may consider using RadDataPagerTemplatePageField and placing an asp:LinkButton with the appropriate commandName and commandArgument. You may check this help article for RadListView command names, a similar concept is applicable to RadDataPager too.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top