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

RadDataPager Next Previous buttons

1 Answer 150 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 06 May 2010, 08:07 PM
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" 
                            PageSize="12"
                            <Fields> 
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                                <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                <telerik:RadDataPagerTemplatePageField> 
                                    <PagerTemplate> 
                                        <div style="float: right; text-align: right; font-family: Arial;"
                                            <b>Products 
                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> 
                                                to 
                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" /> 
                                                of 
                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> 
                                                <br /> 
                                            </b> 
                                        </div> 
                                    </PagerTemplate> 
                                </telerik:RadDataPagerTemplatePageField> 
                            </Fields> 
                        </telerik:RadDataPager> 

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 10 May 2010, 08:27 AM
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.

Regards,
Rosen
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.
Tags
ListView
Asked by
Neil
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or