Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadScheduler with Update Panel issue

$
0
0

I have the following RadScheduler inside an update panel:

 

<asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional">
            <ContentTemplate>
                    <telerik:RadPanerunat="Server"ID="bottomPane"Scrolling="None"Height="1000">--%>   
        <telerik:RadSchedulerrunat="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">
                            <AdvancedFormModal="true"></AdvancedForm>
                            <TimelineViewUserSelectable="false"></TimelineView>
                            <ResourceHeaderTemplate>
                                <divclass="rsResourceHeader<%# Eval("Text") %>">
                                    <%# Eval("Text") %>
                                </div>
                            </ResourceHeaderTemplate>
                            <TimeSlotContextMenuSettingsEnableDefault="true"/>
                            <AppointmentContextMenuSettingsEnableDefault="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.


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>