or
treeView.get_nodes().clear(); if (treeNodesResults != null) { for (var i = 0; i < treeNodesResults.length; i++) { var node = new Telerik.Web.UI.RadTreeNode(); node.set_text(treeNodesResults[i].Text); node.set_value(treeNodesResults[i].Value); node.set_expandMode(treeNodesResults[i].ExpandMode); node.set_imageUrl(treeNodesResults[i].ImageUrl); var checkable = false; var checkableAttribute = node.get_attributes().getAttribute("Checkable"); if (checkableAttribute != null) { checkable = checkableAttribute == "true"; } node.set_checkable(checkable); if (checkable) { var checked = false; var checkedAttribute = node.get_attributes().getAttribute("Checked") == "true"; if(checkedAttribute != null) { checked = checkedAttribute == "true"; } node.set_checked(checked); } treeView.get_nodes().add(node); } }
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|

if ($telerik.isIE || $telerik.isFirefox)
{ sizingElement = contentFrame; }| <configuration> |
| <configSections> |
| <sectionGroup name="telerik.web.ui"> |
| <section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication"/> |
| </sectionGroup> |
| </configSections> |
| <telerik.web.ui> |
| <radScheduler defaultAppointmentProvider="Integrated"> |
| <appointmentProviders> |
| <add name="SchedulerData" type="Telerik.Web.Scheduler.MyDbSchedulerProvider" connectionStringName="LocalSqlServer" persistChanges="true" /> |
| </appointmentProviders> |
| </radScheduler> |
| </telerik.web.ui> |
| <appSettings/> |
| <connectionStrings> |
| <remove name="LocalSqlServer"/> |
| <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|sc.mdf"/> |
| </connectionStrings> |
| <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="Month" DayStartTime="08:00:00" DayEndTime="18:00:00" ProviderName="SchedulerData" ReadOnly="false"> |
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedDate="01/01/2011" al <br> SelectedView="TimelineView" DayEndTime="19:00:00" DataKeyField="BatchNo" DataDescriptionField="BatchNo" <br> DataStartField="StartDate" DataEndField="EndDate" DataSubjectField="StartDate" <br> OverflowBehavior="Expand" DataSourceID="DetailsDataSource" Height="" ReadOnly="true"><br> <AdvancedForm Modal="false" /><br> <AppointmentTemplate><br> <asp:Label ID="Label2" Text="BatchNo:" runat="server"><%# Eval("Description")%></asp:Label> <br> <asp:Label ID="EndDate" Text="StartDate:" runat="server"><%# Eval("Start").ToString().Split(' ')[0] %></asp:Label> <br> <asp:Label ID="lblEnddate" runat="server"></asp:Label><br> </AppointmentTemplate><br> <ResourceTypes><br> <telerik:ResourceType KeyField="BatchNo" Name="Batch" ForeignKeyField="BatchNo" TextField="BatchNo"<br> DataSourceID="DetailsDataSource"/><br> </ResourceTypes><br> <TimelineView UserSelectable="true" HeaderDateFormat="MMM-yyyy" ShowResourceHeaders="true" ShowInsertArea="false" ReadOnly="true" SlotDuration="31:00:00" ColumnHeaderDateFormat="MMM" NumberOfSlots="12" GroupBy="Batch" GroupingDirection="Vertical" /><br> <MultiDayView UserSelectable="true" /><br> <DayView UserSelectable="true" /><br> <WeekView UserSelectable="true" /><br> <MonthView UserSelectable="true" /><br> </telerik:RadScheduler>protected void Page_Load(object sender, EventArgs e)<br> {<br> ClientScript.RegisterStartupScript(this.GetType(), "abc", "pageload();", true);//Registering client side page load function<br> RadScheduler1.AppointmentDataBound += new Telerik.Web.UI.AppointmentDataBoundEventHandler(RadScheduler1_AppointmentDataBound);<br> RadScheduler1.AppointmentCreated += new Telerik.Web.UI.AppointmentCreatedEventHandler(RadScheduler1_AppointmentCreated);<br> RadScheduler1.SelectedDate = DateTime.Now.Date;<br> }<br><br> void RadScheduler1_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)<br> {<br> if (e.Appointment.ID != null)<br> {<br> Label Enddate = e.Container.FindControl("lblEnddate") as Label;<br> Enddate.Text = "End date:" + e.Appointment.End.AddDays(-1).ToShortDateString();<br> }<br> }<br><br> void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e)<br> {<br> if (e.Appointment.ID != null)<br> {<br> e.Appointment.ToolTip = "StartDate:" + e.Appointment.Start.ToShortDateString() + " " + "EndDate:" + e.Appointment.End.ToShortDateString();<br> // e.Appointment.End = e.Appointment.End.AddDays(1);<br> }<br> }

protected
void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
appointment = GetAppointments();
foreach (DataRow row in appointment.Rows)
{
statusValue = row["Status"].ToString();
switch (statusValue)
{
case "1":
e.Appointment.BackColor = Color.Blue;
break;
case "2":
e.Appointment.BorderColor = Color.Black;
break;
case "3":
e.Appointment.ForeColor = Color.DarkKhaki;
break;
default:
break;
}
}
}
Can you please help me on that ?
Thanks.
