Hi Folks,
I had previously set up my RadRotator using a DataSource with a bound ImageURL to server path to image files. This was working fine up until last night when our Windows update went live. I presume it's done something with IE11 (our default browser) as the images for the rotator are now not showing.
The rotator itself loads; the buttons are visible. Just no images.
When loading the webpage under Chrome, Firefox or Edge, it still works correctly.
Does anyone know specifically what has happened to stop the images loading, and what I'll need to do to fix this? I'm guessing it might have something to do with security around either the database or loading images directly from a server path.
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="TransformationRotator.ascx.cs" Inherits="PNCCPortal.UI.NewsModules.TransformationRotator" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
script
type
=
"text/javascript"
>
function OnClientLoad(rotator, args)
{
if (!rotator.autoIntervalID)
{
rotator.autoIntervalID = window.setInterval(function ()
{
rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left);
}, rotator.get_frameDuration());
}
}
</
script
>
<
telerik:RadRotator
RenderMode
=
"Lightweight"
Width
=
"1963px"
Height
=
"450px"
ItemWidth
=
"1903px"
ItemHeight
=
"450px"
ID
=
"rotTransformation"
runat
=
"server"
RotatorType
=
"Buttons"
DataSourceID
=
"dsTransformation"
Style
=
"margin: -5px 0 0 -388px"
FrameDuration
=
"20000"
OnClientLoad
=
"OnClientLoad"
>
<
ItemTemplate
>
<
a
href='<%# DataBinder.Eval(Container.DataItem, "URLLink") %>'>
<
asp:Image
runat
=
"server"
ID
=
"MarqueeImage"
ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImagePath") %>' />
</
a
>
</
ItemTemplate
>
</
telerik:RadRotator
>
<
asp:SqlDataSource
ID
=
"dsTransformation"
runat
=
"server"
ConnectionString
=
"server=XXXX;UID=XXXX;PWD=XXXX;database=XXXX"
SelectCommand="select
*
from
PNCC_MOJO_TransformationMarqeeImage
where
Active
=
1
"></
asp:SqlDataSource
>
Hi Guys
Following the big GDPR push I have converted sites to use https via asp.net code EG;
If Not Request.IsSecureConnection Then
Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://"))
End If
Piece of cake!
But images seem to show as insecure content and browsers do not show the desired padlock.
Running the Firefox web console I see that the offending item is the RadRotor image urls which are not shown in https format and thus provoke the insecure/mixed content warnings. I guess this could be fixed by using the full absolute url but then the development version and the public version would be different, which sucks.
There has to be way round this without using absolute urls rather than relative ones (eg ImageUrl="~/images/image1.png")
Suggestions please!
Thanks
Clive
Hi Guys
I am trying to make my existing (working ) xmldatasource radrotator to an sqldatasource version, but struggling to make the random image show up
Here is what I have; it seems like the string to pick up the image from the 'logos' folder isn't right. What am I doing wrong?
<telerik:radrotator ID="RadRotatorLogo" runat="server" DataSourceID="SqlDataSourceSponsors" Width="365px" Height="230px" ItemWidth="350px" ItemHeight="230px " FrameDuration="8000" RotatorType="SlideShow" SlideShowAnimation-Type="fade" BackColor="#FFFFFF" ScrollDirection="Down" EnableRandomOrder="True" Skin="Simple">
<ItemTemplate>
<asp:Image ID="CustomerImage" runat="server" AlternateText=""
ImageUrl='<%# "~/images/logos/" & Eval("fileName") %>'
ImageAlign="Middle"></asp:Image>
</ItemTemplate>
<SlideShowAnimation Duration="3000" Type="Fade" />
</telerik:radrotator>
<asp:SqlDataSource ID="SqlDataSourceSponsors" runat="server" ConnectionString="<%$ ConnectionStrings:RotaryConnectionString %>" SelectCommand="SELECT [fileName] FROM [tblSponsors]"></asp:SqlDataSource>
thanks
Clive
I just upgraded the version of Telerik Tools on my project and it added all 4 buttons(up,down,left,right) on my RadRotator control.
The RotatorType is set to "FromCode". I don't want the buttons there. Is this a bug? The description for this type says "The rotator will not change items automatically and will not display the control buttons."
Hi, I've been fighting with this problem already for 3 weeks. I have RadRotator with ItemTemplate including RadGrid with one GridButtonColumn. I use RadGrid1_ItemCommand event to prepare and run RadWindow in codebehind to download file.
After click on GridButtonColumn the file is downloading properly but positon of Items in RadRotator always goes back and restarts from 0. How can I block this procedure ? I want RadRotator do nothing after click and the item position should stay at the same index like before click.
Thanks in advance for anyone help !
Best regards
Maciej
HI,
I have been using the Rotator with transparent PNGs. I had to set the RenderMode for the Rotator to 'Classic' for the transparency to work, however with Q1 2017 this does not work and the images all have a white background now.
Please help
Jon.
Hi,
Could I achieve to set image to full width of the browser, and it scale up or down on zoom in or out?
Cheers,
Duy
<
script
type
=
"text/javascript"
>
window.onresize = function()
{
var rotatorElement = document.getElementById("ContentPlaceHolder1_RadRotator1" + "_Div");
rotatorElement.RadResize();
}
</
script
>
The Rotator is displaying 4 buttons... Up, Down, Left, Right.
How can I hide, Up and Down?
Thanks.
JC