Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
33 views

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>
Kenyon
Top achievements
Rank 1
 answered on 20 Feb 2019
1 answer
46 views

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

Rumen
Telerik team
 answered on 06 Dec 2018
1 answer
46 views

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

 

Clive Hoggar
Top achievements
Rank 1
 answered on 03 Dec 2018
1 answer
35 views
Can radrotator randomize the order of the pictures to display?
Marin Bratanov
Telerik team
 answered on 11 Jan 2018
2 answers
48 views

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."

Rumen
Telerik team
 answered on 05 Jul 2017
0 answers
31 views

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

 

Maciej
Top achievements
Rank 1
 asked on 09 May 2017
2 answers
49 views

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.

 

Rumen
Telerik team
 answered on 10 Apr 2017
0 answers
45 views

 

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

 

Duy
Top achievements
Rank 1
 asked on 03 Apr 2017
8 answers
127 views
Greetings,

I'm currently trying to resize this control on browser resize.
I tried to look on the forums before asking. I found a Javascript function ( which is not working unfortunately).

    <script type="text/javascript">
 
window.onresize = function()    
{    
    var rotatorElement = document.getElementById("ContentPlaceHolder1_RadRotator1" + "_Div");    
    rotatorElement.RadResize(); 
}
 
</script>

Error : RadResize undefined.

Thanks in advance for your help

David
Top achievements
Rank 2
 answered on 10 Feb 2017
1 answer
34 views

The Rotator is displaying 4 buttons... Up, Down, Left, Right.
How can I hide, Up and Down?

Thanks.

JC

Juan
Top achievements
Rank 2
 answered on 07 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?