ValidatorUpdateDisplay is undefined

6 posts, 0 answers
  1. Josh
    Josh avatar
    61 posts
    Member since:
    Dec 2009

    Posted 17 Jun 2010 Link to this post

    Hello,
    I am using Q3 2009 controls and running in IE7. I am attempting to use the scheduler but am experiencing some weird problems. Here is the code for the test project I created:

    Markup:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SchedulerTest._Default" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title>Untitled Page</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
        <div> 
             
            <telerik:RadScheduler ID="RadScheduler1" runat="server" OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" Skin="WebBlue" OnDataBinding="RadScheduler1_DataBinding"
            </telerik:RadScheduler> 
             
            <telerik:RadComboBox ID="RadComboBox1" runat="server" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" 
                Skin="WebBlue" AutoPostBack="true"
                <Items> 
                    <telerik:RadComboBoxItem runat="server" Selected="True" Text="English (US)" Value="en-US" /> 
                    <telerik:RadComboBoxItem runat="server" Text="French (CAN)" Value="fr-CA" /> 
                </Items> 
            </telerik:RadComboBox> 
            <div runat="server" id="dummyDiv" style="display:none"
            <asp:TextBox ID="dummyTextBox" runat="server"></asp:TextBox> 
            <asp:RegularExpressionValidator ID="dummyValidator" Display="None" ValidationGroup="" runat="server" ControlToValidate="dummyTextBox"></asp:RegularExpressionValidator> 
            </div> 
             <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
            </telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadScheduler1"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
                            <telerik:AjaxUpdatedControl ControlID="dummyDiv" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="RadComboBox1"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
                            <telerik:AjaxUpdatedControl ControlID="RadComboBox1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="dummyDiv"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
                            <telerik:AjaxUpdatedControl ControlID="dummyDiv" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            
             
        </div> 
        </form> 
    </body> 
    </html> 
     


    Code Behind:
    using System; 
    using System.Data; 
    using System.Configuration; 
    using System.Collections; 
    using System.Web; 
    using System.Web.Security; 
    using System.Web.UI; 
    using System.Web.UI.WebControls; 
    using System.Web.UI.WebControls.WebParts; 
    using System.Web.UI.HtmlControls; 
    using Telerik.Web.UI; 
    using System.Collections.Generic;  
     
    namespace SchedulerTest 
        public partial class _Default : System.Web.UI.Page 
        { 
            protected void Page_Load(object sender, EventArgs e) 
            { 
                if (!IsPostBack) 
                { 
                } 
            } 
     
            protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) 
            { 
            } 
     
            protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) 
            { 
            } 
     
            protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e) 
            { 
            } 
     
            protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
            { 
                string selectedCulture = e.Value.Trim(); 
                System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo(selectedCulture); 
                RadScheduler1.Culture = culture; 
            } 
     
            protected void RadScheduler1_DataBinding(object sender, EventArgs e) 
            { 
                DataSet callBacks = GetSchedule(); 
                DataView callBackView = callBacks.Tables["callback"].DefaultView; 
     
                RadScheduler1.DataKeyField = "id"
                RadScheduler1.DataSubjectField = "subject"
                RadScheduler1.DataStartField = "start"
                RadScheduler1.DataEndField = "end"
                RadScheduler1.DataSource = callBackView; 
            } 
     
            public DataSet GetSchedule() 
            { 
                return GenerateSchedule(); 
            } 
     
            public DataSet GenerateSchedule() 
            { 
                DataTable callBackTable = new DataTable("callback"); 
                callBackTable.Columns.Add("id"); 
                callBackTable.Columns.Add("subject"); 
                callBackTable.Columns.Add("start"); 
                callBackTable.Columns.Add("end"); 
     
                DataRow row = callBackTable.NewRow(); 
                row["id"] = 1; 
                row["subject"] = "CALL"
                row["start"] = (new DateTime(2010, 6, 15, 13, 0, 0)).ToString(); 
                row["end"] = (new DateTime(2010, 6, 15, 16, 0, 0)).ToString(); 
                callBackTable.Rows.Add(row); 
     
                DataSet schedule = new DataSet(); 
                schedule.Tables.Add(callBackTable); 
                return schedule; 
            } 
        } 
     

    The scheduler renders ok and I can see the hard-coded appointment appear, but when I double click to edit it, the start and end date textboxes flash red (with error symbol) and then return to normal, and then the subject box's error symbol appears, as if it failed validation. I get the following javascript error in IE when this happens:
    ValidatorUpdateDisplay is undefined
    Code: 0
    I can still close the appointment with the 'x' in the top right corner of the edit form, but the 'Save' and 'Cancel' buttons do not work.

    If I double-click on a blank timeslot, add some text, and then click 'Options', the error symbol does not appear but I get the script error "'null' is null or not an object".

    After searching the forums, I found a few suggestions to place a dummy validator on the page which does not actually validate anything. This has had no effect. Any help will be appreciated. Thank you.
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 23 Jun 2010 Link to this post

    Hi Josh,

    We tried to reproduce the problem you described, but without much success. Please find attached our test page and a movie as part of our local tests.
    Does it work at your end?

    Regards,
    Helen
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Josh
    Josh avatar
    61 posts
    Member since:
    Dec 2009

    Posted 23 Jun 2010 Link to this post

    Helen,

    Thank you for your reply. I believe that I have found the problem. I tried placing the same test scheduler inside of an actual enterprise application instead of a test project, and it worked! I figured the problem must be in the web.config, so I started copying items to the test project's web.config and it turns out it just needed a path to ScriptResource.axd under httpHandlers. If I run into any more strange errors I will update.
    Josh

  5. Don
    Don avatar
    17 posts
    Member since:
    Aug 2010

    Posted 07 Sep 2010 Link to this post

    I am receiving the same error in IE8 with RadScheduler but it seems to think there is a problem with the WebResource.axd.  See attached for debug info and here is the httpHandlers section of my web.config.  Is there something wrong with this?

    <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>


    Thanks,

    Don



  6. Josh
    Josh avatar
    61 posts
    Member since:
    Dec 2009

    Posted 07 Sep 2010 Link to this post

    Try adding this inside httpHandlers:

    <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />

    When I added this in my web.config I stopped getting the error in IE7. I haven't tested in IE8 yet.
  7. Don
    Don avatar
    17 posts
    Member since:
    Aug 2010

    Posted 09 Sep 2010 Link to this post

    Thank you!
       I have absolutely no idea what any of that means but it took care of the problem in IE8.
    Can't wait 'til I know more.  Lots more.

    Cheers,

    Don
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017