RadScheduler with Update Panel issue

2 posts, 0 answers
  1. Alexandru
    Alexandru avatar
    5 posts
    Member since:
    Jun 2015

    Posted 22 Jul 2015 Link to this post

    I have the following RadScheduler inside an update panel:

     

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                        <telerik:RadPane runat="Server" ID="bottomPane" Scrolling="None" Height="1000">--%>   
            <telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Office2007" Height="100%" OverflowBehavior="Auto"
                                OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                                OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
                                OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                                OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
                                OnClientAppointmentInserting="OnClientAppointmentInserting"
                                OnClientNavigationComplete="OnClientNavigationComplete"
                                OnClientAppointmentsPopulating="OnClientAppointmentsPopulating"
                                OnFormCreated="RadScheduler1_FormCreated"
                                DataKeyField="Id" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
                                DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"
                                DataReminderField="Reminder"
                                SelectedView="WeekView" ShowFooter="false"
                                DayStartTime="07:00:00" DayEndTime="21:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                                EnableDescriptionField="true" AppointmentStyleMode="Default" ClientIDMode="Static" ClientID="RadScheduler1" StartEditingInAdvancedForm="true" >
                                <AdvancedForm Modal="true"></AdvancedForm>
                                <TimelineView UserSelectable="false"></TimelineView>
                                <ResourceHeaderTemplate>
                                    <div class="rsResourceHeader<%# Eval("Text") %>">
                                        <%# Eval("Text") %>
                                    </div>
                                </ResourceHeaderTemplate>
                                <TimeSlotContextMenuSettings EnableDefault="true" />
                                <AppointmentContextMenuSettings EnableDefault="true" />
                                <Localization />
                            </telerik:RadScheduler>
        </ContentTemplate>
            </asp:UpdatePanel>​

     

    Whenever i update an appointment in the advanced, the built-in subject validator works (the subject field border gets red and it does nothing if the subject field is empty). In the normal insert, the AppointmentInsert event fires and I can validate the subject in code behind. However, when i insert a new appointment in the advanced form, if the subject field is empty, the border gets red, but the UpdatePanel loads, the AppointmentInsert event doesn't fire and the page gets blocked. I attached a picture.

     

    Thank you very much.

  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 27 Jul 2015 Link to this post

    Hi,

    I have tested the described behavior with the provided code in a sample test page with RadScheduler bound to a dummy XML database and it worked correctly at my side. I am attaching my test page so please review it and let me know what else should be done in order to observe the issue.

    One more think using ClientIDMode="Static" is not supported by RadControl and it may be causing the odd behavior so I will recommend you to remove it from the code.

    Regards,
    Plamen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top