Hi
I have made some changes according to this article http://www.telerik.com/community/forums/aspnet-ajax/scheduler/asp-updatepanel-and-radscheduler-issues.aspx, but got another javascript error when I try to add a appointment, here is the details
Following is my aspx code
Please advice. Thanks
I have made some changes according to this article http://www.telerik.com/community/forums/aspnet-ajax/scheduler/asp-updatepanel-and-radscheduler-issues.aspx, but got another javascript error when I try to add a appointment, here is the details
Message: 'Telerik.Web.RadDatePickerPopupDirection.BottomRight' is null or not an object
Line: 10
Char: 1
Code: 0
URI: http://winsps:81/ScriptResource.axd?d=bObZWqwCQ27Ew08lmqPNpb0hb8fJTnibHARVcv144jcy-xsybBbpW2-eVsV7j6KK0uXqcrwPXYjDG7a0xE21XjhSGd74A1Rz1mUaexrDlmyegEDFO2BCvt6XFVMhD-xk0&t=ffffffffb564747d
Following is my aspx code
<
script
type
=
"text/javascript"
>
function OnClientAppointmentMoving(sender, eventArgs) {
eventArgs.set_cancel(true);
}
</
script
>
<
style
>
.rsAptDelete
{
//display: none;
}
.rsModalDialog
{
top:300px!important;
}
.rsAptResize
{
display:none;
}
</
style
>
<
asp:UpdatePanel
runat
=
"server"
ID
=
"UpdatePanel1"
>
<
ContentTemplate
>
<
telerik:RadScheduler
runat
=
"server"
ID
=
"RadScheduler1"
FirstDayOfWeek
=
"Monday"
RowHeaderWidth
=
"52px"
DayStartTime
=
"06:00:00"
DayEndTime
=
"22:30:00"
DataKeyField
=
"ID"
DataSubjectField
=
"Subject"
DataStartField
=
"Start"
DataEndField
=
"End"
DataRecurrenceField
=
"RecurrenceRule"
DataRecurrenceParentKeyField
=
"ID"
OnAppointmentCreated
=
"RadScheduler1_AppointmentCreated"
SelectedView
=
"TimelineView"
GroupBy
=
"Rooms"
GroupingDirection
=
"Vertical"
OverflowBehavior
=
"Expand"
StartInsertingInAdvancedForm
=
"true"
StartEditingInAdvancedForm
=
"true"
TimelineView-NumberOfSlots
=
"7"
TimelineView-ColumnHeaderDateFormat ="dd/MMM <br />(ddd)"
TimelineView-HeaderDateFormat="dd/MM/yyyy"
RowHeight="80px"
LastDayOfWeek="Friday"
onnavigationcomplete="RadScheduler1_NavigationComplete"
OnClientAppointmentMoving="OnClientAppointmentMoving"
OnAppointmentInsert="RadScheduler1_AppointmentInsert"
OnAppointmentDelete="RadScheduler1_AppointmentDelete"
OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
onformcreated="RadScheduler1_FormCreated">
<
AdvancedForm
Modal
=
"true"
/>
<
TimelineView
UserSelectable
=
"false"
StartTime
=
"06:00"
/>
<
WeekView
UserSelectable
=
"false"
/>
<
MonthView
UserSelectable
=
"false"
/>
<
DayView
UserSelectable
=
"false"
/>
<
TimeSlotContextMenuSettings
EnableDefault
=
"true"
/>
<
AppointmentContextMenuSettings
EnableDefault
=
"false"
/>
<
AppointmentTemplate
>
<
b
> <
asp:Label
runat
=
"server"
ID
=
"AssignedTo"
/></
b
> <%# Eval("Subject") %>
</
AppointmentTemplate
>
</
telerik:RadScheduler
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
Please advice. Thanks