RadScheduler RecurrenceRule empty

2 posts, 0 answers
  1. Cathy
    Cathy avatar
    1 posts
    Member since:
    Aug 2012

    Posted 07 Oct 2012 Link to this post

    Hi
    I am new to telerik controls.I used radscheduler with recurrence but I am not able to get recurrence rule in server side while inserting a appointment in database.
    An appointment is inserted with out the recurrence.I am binding the scheduler to a datasource.
    <telerik:RadScheduler ID="RadScheduler1" runat="server"
                   DataDescriptionField="CH_DESC" DataEndField="CH_TOTIME" 
                   DataKeyField="CH_BOOKID" 
                   DataStartField="CH_FROMTIME" DataSubjectField="CH_BOOKSUBJECT"                
                   OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                   OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
                   OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                   OnAppointmentCreated="RadScheduler1_AppointmentCreated"
                   OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
                   MinutesPerRow="15" TimeLabelRowSpan="1"
                   Skin="Windows7"  GroupBy="Hall"  Height="400px"
                   DayStartTime="09:00:00" DayEndTime="19:00:00" 
                   WorkDayStartTime="09:00:00" WorkDayEndTime="19:00:00"
                   EnableDescriptionField="True" ShowAllDayRow="False"  AdvancedForm-Modal="true"
                   StartInsertingInAdvancedForm="True" AdvancedForm-Enabled="true" AdvancedForm-EnableCustomAttributeEditing="true" 
                   DataRecurrenceParentKeyField="CH_RECPID"  DataRecurrenceField="CH_REC" EnableRecurrenceSupport="true">
               <AdvancedForm  EnableCustomAttributeEditing="true"/>          
               <AppointmentTemplate>
               <div class="rsCategoryViolet">
               <br />
                  Subject:<%# Eval("Subject")%><br />Time:<%#Convert.ToDateTime(Eval("Start")).ToShortTimeString()%>- <%#Convert.ToDateTime(Eval("End")).ToShortTimeString()%>  <br />
              
              
               </div>
               </AppointmentTemplate>
               </telerik:RadScheduler>
           </asp:Panel>


    By default CH_RECPID,CH_REC is set to empty string.
    Please tell me a solution for this.
    thanks in advance
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2035 posts

    Posted 10 Oct 2012 Link to this post

    Hello Cathy,

    Please clarify how do you set CH_RECPID and CH_REC by default to empty string?
    I prepared a sample project that demonstrates RadScheduler populating with data using SQL data source. An easy and convenient way to retrieve an appointment  recurrence rule  while inserting would be to use AppointmentInsertEventArgs e.RecurrenceRule property in AppointmentInsert event handler.

    I hope that you will find it helpful.


    Kind regards,
    Boyan Dimitrov
    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.
Back to Top