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

RadDataPager AllowSEOPaging images problem

7 Answers 146 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Andrea D'Orio
Top achievements
Rank 1
Andrea D'Orio asked on 06 Dec 2011, 01:03 PM
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>

7 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 07 Dec 2011, 08:43 AM
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
0
Jan
Top achievements
Rank 1
answered on 13 Nov 2015, 12:13 PM

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

0
Pavlina
Telerik team
answered on 18 Nov 2015, 12:54 PM
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
0
Jan
Top achievements
Rank 1
answered on 18 Nov 2015, 01:02 PM

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

0
Pavlina
Telerik team
answered on 19 Nov 2015, 07:43 AM
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
0
Jan
Top achievements
Rank 1
answered on 19 Nov 2015, 09:55 AM

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

0
Pavlina
Telerik team
answered on 19 Nov 2015, 10:58 AM
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
Tags
DataPager
Asked by
Andrea D'Orio
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Jan
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or