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

RadScheduler with Update Panel issue

1 Answer 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alexandru
Top achievements
Rank 1
Alexandru asked on 22 Jul 2015, 11:31 AM

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.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Jul 2015, 06:08 AM
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
Tags
Scheduler
Asked by
Alexandru
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or