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

RadSchedulerRecurrenceEditor in AdvanceTemplate

7 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 02 Sep 2013, 06:11 PM
I'm currently using the <AdvancedEditTemplate> and <AdvancedInsertTemplate> for my appointment entry, this has been working with out any problems, however I would now like to add the Recurrence option to the form.

I've been looking at the  RadSchedulerRecurrenceEditor and added this inside my template.  This displays with out any problems, however it does not insert any recurrence appointments in the database. Do i have to add any other settings, I've seen the example which uses another usercontrol for the advanceform. I don't really want to have to change everything to fit this in, is there away to add this functionality in the templates? 

thanks

7 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 05 Sep 2013, 02:27 PM
Hello Karl,

I would suggest you to add a button in the template, where the  RadSchedulerRecurrenceEditor is placed in and use its OnClick handler to associate the RadSchedulerRecurrenceEditor's Recurrence rule with the Appointment's Recurrence rule, like demonstrated in this documentation article.

Regards,
Nencho
Telerik
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 the blog feed now.
0
Karl
Top achievements
Rank 1
answered on 05 Sep 2013, 06:51 PM

Thanks, I've take an a look at the article but can't see any reference to the following:

RecurrenceParentID

How is this populated? I've managed to get the Recurrence rule, but not the parentid.

Thanks

 

0
Karl
Top achievements
Rank 1
answered on 06 Sep 2013, 07:01 AM
I'm trying to use this to save the recurring appointmenht but it does not seem to work:
private void Recur(Appointment newAppointment, RadSchedulerRecurrenceEditor RecurrenceEditor)
 {
 
     //RecurrenceRange range = new RecurrenceRange();
     //range.Start = newAppointment.Start;
     //range.EventDuration = newAppointment.End - newAppointment.Start;
     //range.MaxOccurrences = RecurrenceEditor.RecurrenceRule.MaximumCandidates;
    // RecurrenceRule newDayly = new DailyRecurrenceRule(RecurrenceEditor.RecurrenceRule.Pattern.Interval, range);
newAppointment.RecurrenceRule = RecurrenceEditor.RecurrenceRuleText;
 
     RadScheduler1.InsertAppointment(newAppointment);
//     RadScheduler1.Rebind();
 }

How do I get the information from the RadSchedulerRecurrenceEditor and at what point, i'm trying to do this on the appointment command.

Thanks

0
Nencho
Telerik team
answered on 10 Sep 2013, 01:07 PM
Hello Karl,

I would suggest you to use Advanced Template User Controls, like demonstrated in this code library. Please give it a try at your end and let us know if you have any difficulties, implementing the approach at your end. In addition, please refer to our online demo, demonstrating the behavior, when the aforementioned approach is implemented.

Regards,
Nencho
Telerik
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 the blog feed now.
0
Karl
Top achievements
Rank 1
answered on 13 Sep 2013, 07:59 AM
I've changed mine to use use the method in your link, I can't even get it to open the advance editor. I'm using the objectdatasource, do I need the javascript file? I've been looking at the below, mode returns 1 but the advancedInsert is 3 so never hits it, do I need to set something else?
function schedulerFormCreated(scheduler, eventArgs) {
     
        // Create a client-side object only for the advanced templates
        var mode = eventArgs.get_mode();
        alert(mode + "|" + Telerik.Web.UI.SchedulerFormMode.AdvancedInsert);
        if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
                    mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
0
Nencho
Telerik team
answered on 18 Sep 2013, 07:28 AM
Hello Karl,

I tried to replicate the described issue, but to no avail. Therefore, I am sending you the sample project I have tested with (using ObjectDataSource). Please give it a try at your end, in order to observe the implementation. If the issue still persist. I would suggest you to open a support ticket and attached a runnable sample, demonstrating the faced issue. Please find the sample attached.

Regards,
Nencho
Telerik
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 the blog feed now.
0
Karl
Top achievements
Rank 1
answered on 27 Sep 2013, 10:25 AM
Thanks for the reply and the sample, this sample works as expected.Its down to the java script file, will take a look.

Thanks again


Tags
Scheduler
Asked by
Karl
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Karl
Top achievements
Rank 1
Share this question
or