This is a migrated thread and some comments may be shown as answers.

RadSchedule issue with updatepanel in sharepoint 2010

2 Answers 100 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 03 Nov 2011, 04:13 PM
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

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

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalina
Telerik team
answered on 08 Nov 2011, 11:20 AM
Hi Chuin Hun,

As I understand - you are trying to register the RadScheduler scripts as described in the forum post that you mention.
Could you please make sure that you have registered these scripts:
Telerik.Web.UI.Calendar.RadPickersPopupDirectionEnumeration.js
Telerik.Web.UI.Calendar.RadDatePicker.js
Telerik.Web.UI.Calendar.RadDateTimePickerScript.js
Telerik.Web.UI.Calendar.RadTimeViewScripts.js

Kind regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
CH
Top achievements
Rank 1
answered on 09 Nov 2011, 01:16 PM
Hi Kalina , thanks a lot! it's working now.
Tags
Scheduler
Asked by
CH
Top achievements
Rank 1
Answers by
Kalina
Telerik team
CH
Top achievements
Rank 1
Share this question
or