Change Next Arrow to NEXT

2 posts, 0 answers
  1. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 11 Nov 2015 Link to this post


    My Datapager is using:

    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
    <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
    <telerik:RadDataPagerButtonField FieldType="NextLast" />

    Instead of arrows, how can I show them as text?
    I wish to change from < 1,2,3,4,5 > to PREV 1,2,3,4,5 NEXT




  2. Viktor Tachev
    Viktor Tachev avatar
    1445 posts

    Posted 16 Nov 2015 Link to this post


    By default the buttons in the RadDataPager are using images as background. You can override that and customize the buttons to display text instead.

    The following code snippet outlines the approach for changing the prev button. The code is placed in the FieldCreated event handler of the RadDataPager.

    protected void RadDataPager1_FieldCreated(object sender, RadDataPagerFieldCreatedEventArgs e)
        if (e.Item is RadDataPagerFieldItem)
            RadDataPagerFieldItem item = e.Item as RadDataPagerFieldItem;
            Button prevButton = item.FindControl("PrevButton") as Button;
            if (prevButton != null)
                prevButton.Text = "Prev";
                prevButton.CssClass = "";

    Viktor Tachev
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top