RadDataPager AllowSEOPaging images problem

8 posts, 0 answers
  1. Andrea D'Orio
    Andrea D'Orio avatar
    12 posts
    Member since:
    Mar 2007

    Posted 06 Dec 2011 Link to this post

    Hi,

    when i set AllowSEOPaging=true the RadDataPager's image buttons disappear.

    Thanks!

    <
    telerik:RadListView ID="RadListView1" runat="server" OnNeedDataSource="RadListView1_NeedDataSource"
               AllowPaging="True" ItemPlaceholderID="Panel1" >
               <LayoutTemplate>
                   <asp:Panel ID="Panel1" runat="server" />
                   <div>
                       <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
                           PageSize="6" SEOPagingQueryPageKey="page" AllowSEOPaging="True">
                           <Fields>
                               <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                               <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                               <telerik:RadDataPagerButtonField FieldType="NextLast" />
                           </Fields>
                       </telerik:RadDataPager>
                   </div>
               </LayoutTemplate>
               <ItemTemplate>
                   <div>
                       <%#Container.DataItem%>
                   </div>
               </ItemTemplate>
           </telerik:RadListView>
  2. Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 07 Dec 2011 Link to this post

    Hello Andrea,

    This is an already known bug in the datapager exposed wheb the skins have been moved to a separate dll (Q3 2011 official release). The paths for the images have been rewritten to use the new dll but there still seems to be a problem which our developers will soon address.

    In the meantime, you can either stay with Q2 2011 (SP1) or you can manually show the images as custom ones. For this purpose you can go to the Skins folder and take the needed images from the Grid folder for the respective skin, i.e.:
    ~\Telerik\RadControls for ASP.NET AJAX Q3 2011\Skins\Windows7\Grid and take:
    PagingFirst.gif
    PagingPrev.gif
    PagingNext.gif
    PagingLast.gif

    Then you could use code similar to that in the pageLoad client event (automatically wired by ASP.NET):
    Copy Code
    <telerik:RadCodeBlock ID="rcb1" runat="server">
    <script type="text/javascript">
    function pageLoad() {
    var pager = $find('<%=RadListView1.FindControl("RadDataPager1").ClientID %>').get_element();
    $telerik.$(pager).find(".rdpWrap a img")[0].src = "PagingFirst.gif";
    $telerik.$(pager).find(".rdpWrap a img")[1].src = "PagingPrev.gif";
    $telerik.$(pager).find(".rdpWrap a img")[2].src = "PagingNext.gif";
    $telerik.$(pager).find(".rdpWrap a img")[3].src = "PagingLast.gif";
    }
    </script>
    </telerik:RadCodeBlock>

    I hope this helps.

    All the best,
    Tsvetina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jan
    Jan avatar
    45 posts
    Member since:
    Oct 2007

    Posted 13 Nov 2015 in reply to Tsvetina Link to this post

    Hello,

    Was there ever a fix for this?
    I'm experiencing the same issue when I set AllowSEOPaging="true":

    <telerik:RadDataPagerButtonField FieldType="Prev" FirstButtonImageUrl="../images/icons/arwleft.png" />​

    Then the default button is displayed!?
    Any help appreciated
    Thanks
    Jan

  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 18 Nov 2015 Link to this post

    Hello,

    Could you specify which is the Telerik.UI for ASP.NET AJAX version that you are using in your project? I tried to replicate the problem with the seo paging using the latest version of the controls, however everything is working as expected. You can find attached my test page and see what is the difference in your case. 

    Regards,
    Pavlina
    Telerik
    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
  6. Jan
    Jan avatar
    45 posts
    Member since:
    Oct 2007

    Posted 18 Nov 2015 in reply to Pavlina Link to this post

    Hello Pavlina, 

    I'm using 2015.2.623.40
    In that project I'm also using Bootstrap and maybe that's interfering somehow.
    Anyway I managed to solve my problem using CSS.

    Best regards

    Jan

  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 19 Nov 2015 Link to this post

    Hi,

    I also tested the project with the Bootstrap skin and still there is no problem with the images. However, it is nice to hear that you managed to resolve it on your own,

    Regards,
    Pavlina
    Telerik
    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
  8. Jan
    Jan avatar
    45 posts
    Member since:
    Oct 2007

    Posted 19 Nov 2015 in reply to Pavlina Link to this post

    Hello Pavlina!

    Ok, thank you for your help. Since I got it to work I won't dig deeper into this at the moment.

    Best regards

    Janne

  9. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 19 Nov 2015 Link to this post

    Hello,

    I am glad to hear that you manage to fix the problem on your own. 

    Regards,
    Pavlina
    Telerik
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017