Hi sir,
Iam using Radscheduler for my batch planner...In Time line View Appointment is showing in wrong slot as shown in attachment
batch no 143 starting from 6th december but in timeline view appointment is showing from november Where as in other views i.e day view,month view... etc appointment is showing correctly.i traced it in appointment data bound event using debugger ...the appointment start time is showing correctly...but not dispalying correctly(only in timeline view) below is the code i written.
related events
please give me a solution for this ASAP as it is already in production
Thanks
Rajesh
Iam using Radscheduler for my batch planner...In Time line View Appointment is showing in wrong slot as shown in attachment
batch no 143 starting from 6th december but in timeline view appointment is showing from november Where as in other views i.e day view,month view... etc appointment is showing correctly.i traced it in appointment data bound event using debugger ...the appointment start time is showing correctly...but not dispalying correctly(only in timeline view) below is the code i written.
<
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
> }
Thanks
Rajesh