RadTimePicker and RadDateTimePicker problem in IE9

3 posts, 0 answers
  1. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 30 Mar 2012 Link to this post

    Hello Teleirk team.
    I have a trouble about manipulating RadTimePicker and RadDateTimePicker.
    when i set the set_enabled(false) property in javascript code, screen's width and height sizes are borken in IE9.
    FF and chrome are fine.

    i'm using lastest telerik control 2012 Q1 and HOTFIX patch.


    <%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp4._Default" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <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" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
            function Enable(control) {
                var timePicker = $find("<%= RadTimePickerStartTime.ClientID %>");
                if (control.checked) {
                    timePicker.set_enabled(true);
                }
                else {
                    timePicker.set_enabled(false);
                }
            }
     
            function EnableDateTime(control) {
                var timePicker = $find("<%= RadDatePickerStartTimeDate.ClientID %>");
                if (control.checked) {
                    timePicker.set_enabled(true);
                }
                else {
                    timePicker.set_enabled(false);
                }
            }
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadTimePicker ID="RadTimePickerStartTime" runat="server">
            <TimeView ID="TimeView1" runat="server" ShowHeader="true" StartTime="08:00:00" Interval="00:30:00"
                EndTime="18:30:00" Columns="4">
            </TimeView>
            <DateInput ID="DateInputStartTime" runat="server" DisplayDateFormat="hh:mm tt" SelectionOnFocus="SelectAll">
            </DateInput>
        </telerik:RadTimePicker>
        <asp:CheckBox runat="server" ID="Enabled" Checked="true" Text="RadTimePicker Enabled"
            onclick="Enable(this);" />
     
        <telerik:RadDatePicker ID="RadDatePickerStartTimeDate" runat="server" EnableEmbeddedSkins="false"
            Calendar-FastNavigationStep="12" Calendar-ShowRowHeaders="false" Width="100%">
            <DateInput ID="DateInputStartTimeDate" runat="server" DateFormat="MM/dd/yyyy" SelectionOnFocus="SelectAll"
                Width="100%" />
        </telerik:RadDatePicker>
     
            <asp:CheckBox runat="server" ID="CheckBox2" Checked="true" Text="RadDateTimePicker Enabled"
            onclick="EnableDateTime(this);" />
        </form>
    </body>
    </html>
  2. Galin
    Admin
    Galin avatar
    526 posts

    Posted 04 Apr 2012 Link to this post

    Hi Shunman,


    This is an already known issue and the next internal build will include fix for it. You can download it from here or waiting for the next stable version - SP1, which will be released in the middle of April.


    Please excuse us for the inconvenience this might cause you and I hope this helps.

    Regards,
    Galin
    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. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 04 Apr 2012 Link to this post

    Thanks. Problem has been solved.
Back to Top