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:
Code Behind:
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.
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.