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

RadScheduler RecurrenceRule empty

1 Answer 68 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Cathy
Top achievements
Rank 1
Cathy asked on 07 Oct 2012, 06:40 AM
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

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 10 Oct 2012, 03:29 PM
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.
Tags
Scheduler
Asked by
Cathy
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or