RadScheduler Navigation Calendar Not Working

3 posts, 0 answers
  1. rjb227s
    rjb227s avatar
    17 posts
    Member since:
    Apr 2009

    Posted 07 Jan 2010 Link to this post

    Hello,

    I've used the Rad Scheduler for a while now the navigation popup calendar is not causing the date of the scheduler to change.  I believe this began shortly after changing to the 2009Q3 release.

    Anything you can do to help is greatly appreciated.

    Key Points:
    1. Data Binding: The data is bound to the scheduler on the server side code where data is retrieved from the database and looped through to create a list<appointment> of appointment objects.
    2. Navigation Arrows:  These were not working either, but after we made the setting of the startdate, enddate, and timezone offset be in an If(!IsPostback) block, the arrows now work (not the calendar)
    3. The control has been placed on a page with no other controls and the problem persists

    Below is the client code:

    <pro:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
        <AjaxSettings> 
            <pro:AjaxSetting AjaxControlID="CalendarRadScheduler"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="CalendarRadScheduler" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </pro:AjaxSetting> 
        </AjaxSettings> 
    </pro:RadAjaxManager> 
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" /> 
     
            <pro:RadScheduler  
                ID="CalendarRadScheduler"  
                runat="server"  
                EnableAjaxSkinRendering="false" 
                Height="750px"  
                Width="578px"  
                ShowAllDayRow="False"  
                AllowDelete="False"  
                AllowEdit="False" 
                AllowInsert="False"  
                Skin="Office2007" 
                HoursPanelTimeFormat="h:mm tt"  
                MinutesPerRow="15"  
                ShowFullTime="True" 
                StartEditingInAdvancedForm="false" 
                DataKeyField="ID"  
                DataSubjectField="Subject"  
                DataStartField="Start"  
                DataEndField="End" 
                DataRecurrenceField="RecurrenceRule"  
                DataRecurrenceParentKeyField="RecurrenceParentID" 
                DayEndTime="18:30:00"  
                DayStartTime="08:00:00"  
                ShowFooter="false"  
                OnClientAppointmentInserting="AppointmentInserting" 
                OnClientAppointmentDoubleClick="AppointmentDoubleClick"  
                OnAppointmentCreated="CalendarRadScheduler_AppointmentCreated"  
                OnAppointmentDataBound="CalendarRadScheduler_AppointmentDataBound"  
                CustomAttributeNames="NetworkId"  
                OnAppointmentCommand="CalendarRadScheduler_AppointmentCommand"  
                OnFormCreating="CalendarRadScheduler_FormCreating"
                 
                 
                <AppointmentTemplate> 
                    <div> 
                        <%# FormatCalendarMessage() %> 
                        <span style="text-align:right; vertical-align:top; width:100%;"
                         <asp:ImageButton Enabled="true" Visible="false" ID="ibtnEdit" runat="server" CommandName="EditMessage" 
                                    ToolTip="Edit" AlternateText="Edit" CausesValidation="false" CssClass="linkButton" 
                                    ImageUrl="~/images/edit.gif" OnClientClick="ChangeImg(this.id, 'loading');" /> 
                        &nbsp; 
                        <asp:ImageButton Enabled="true" Visible="false" ID="ibtnCopy" runat="server" CommandName="CopyMessage" 
                                    ToolTip="Create Copy" AlternateText="Create Copy" CausesValidation="false" CssClass="linkButton" 
                                    ImageUrl="~/images/copy.gif" OnClientClick="ChangeImg(this.id, 'loading');" /> 
                        </span> 
                    </div> 
                </AppointmentTemplate> 
                 
            </pro:RadScheduler> 

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 Jan 2010 Link to this post

    Hello Ryan,

    Thank you for contacting us.

    We cannot reproduce this problem locally. Attached is a sample we used to test the case. Can you modify it or send us your own project to replicate the problem?


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. rjb227s
    rjb227s avatar
    17 posts
    Member since:
    Apr 2009

    Posted 18 Jan 2010 Link to this post

    I solved this one:

    Issue:  I was binding the scheduler and setting the SelectedDate in the Page_Load() method.  This should instead be in the On_Init() method.  By moving the server-side binding to this location, I am no longer resetting the SelectedDate at the incorrect step in the order of operations.

    Ryan
Back to Top