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

img onclick not working after recent update to 2015.2.729.40

1 Answer 54 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
RBarnes asked on 17 Aug 2015, 03:40 PM

We recently updated to the newest version 2015.2.729.40 and our Rotator image onclick doesn't work in Chrome and doesn't work on some machines in IE.

 We had <asp:Image controls in our rotator which are rendered as <mg

 To correct this, we had to change the control type to <asp:ImageButton which renders as <input

  Again, this issue only happened after our recent updated to version 2015.2.729.40

 Simplified example below

<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default1.aspx.vb" Inherits="TestWebRoot._Default" %>
<!DOCTYPE html>
<head runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        <script type="text/javascript">
            //Put your JavaScript code here.
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <telerik:RadRotator ID="RadRotator1" runat="server" Height="300px" Width="823px" BackColor="White"
            ScrollDuration="5000" FrameDuration="10000" ItemHeight="300px" ItemWidth="823px" PauseOnMouseOver="true"
            RotatorType="SlideShow" ScrollDirection="Left" BorderWidth="0px" SlideShowAnimation-Type="CrossFade"
                        <table style="position: relative;">
                                <td style="vertical-align: top;">
                                    <div class="Center ProductLabel" style="width: 100%; height: 20px;">
                                        img control
                                    <img id="Img2" runat="server" src="~/images/logo.jpg" style="width: 50px; height: 50px;" alt="My Image" onclick="alert('here'); return false;" title="MyTitle" />
                                    <div class="Center ProductLabel" style="width: 100%; height: 20px;">
                                    <asp:ImageButton ID="Image1" runat="server" style="width: 50px; height: 50px;" AlternateText="My Image" ImageUrl="~/images/logo.jpg" OnClientClick="alert('here'); return false;" />
        Test Image outside Rotator
        <img id="Img1" runat="server" class="Link" src="~/images/logo.jpg" onclick="alert('here');" />

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 20 Aug 2015, 12:46 PM
Hi Roger,

The bug you encountered is already fixed and it will be included in the upcoming Q2 2015 SP2 release, scheduled for the end of August. When the release becomes available, I would recommend upgrading to the latest version, which should resolve the issue at hand.

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
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question