RadSchedule issue with updatepanel in sharepoint 2010

3 posts, 1 answers
  1. CH
    CH avatar
    48 posts
    Member since:
    Aug 2010

    Posted 03 Nov 2011 Link to this post

    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. Answer
    Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 08 Nov 2011 Link to this post

    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
  3. CH
    CH avatar
    48 posts
    Member since:
    Aug 2010

    Posted 09 Nov 2011 Link to this post

    Hi Kalina , thanks a lot! it's working now.
Back to Top