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

Recurrency

8 Answers 135 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 13 Oct 2008, 03:20 PM
Dear Telerik,

I don't want to use reccurency functionality. Is there any way I can turn it off?

Thank you.

8 Answers, 1 is accepted

Sort by
0
Maria
Top achievements
Rank 1
answered on 13 Oct 2008, 03:27 PM
I think, I got it:)

The other thing is.. I like advanced edit/insert forms you have. However, I need to have one more textbox there. I was wondering if there is any way, I can get template for the default view of those, so I could just append them instead of creating from scratch.

Thank you.
0
Simon
Telerik team
answered on 13 Oct 2008, 04:38 PM
Hello Maria,

You can use the code of the Template used in this example and modify it as required.

The files are located in the installation directory of Telerik.Web.UI under Live Demos/Scheduler/Examples/Templates/.

I hope this helps.

All the best,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joan
Top achievements
Rank 1
answered on 23 Oct 2008, 09:57 PM
Please let me know how to remove the recurrence option.

Thanks
0
Peter
Telerik team
answered on 24 Oct 2008, 09:50 AM
Hi Joan,

Please, use the approach from this kb article: How to access controls in the advanced form. Once you find controls related to recurrence, you can set their Visible property to false.

Maria, you can also use the above kb article to dynamically append controls in the FormCreated event.


All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joan
Top achievements
Rank 1
answered on 24 Oct 2008, 04:56 PM
Thanks for the help in removing the recurrency option from the AdvancedEdit/Insert forms. 

I am still getting the following undesirable behavior:

When my program cancels an appointment update (due to an error condition such as appointment is in the past) and after providing an alert message, I find that the  original appointment has been modified to not have an end date nor time, and to have the Recurrence panel with the Radio button list (Hourly ... Yearly options) displayed and the "Range Of Recurrence" with no end date selected. 

What is the deal with this?

Thanks.

Joan Jamison



0
Joan
Top achievements
Rank 1
answered on 24 Oct 2008, 08:54 PM

I have solved this problem by disabling the recurrence text box in the

 

RadScheduler1_AppointmentCommand

 when the command is cancel.

Thanks for your help.
0
Joan
Top achievements
Rank 1
answered on 04 Nov 2008, 07:22 PM
I am using the events: 

RadScheduler1_AppointmentCommand

 

RadScheduler1_AppointmentCreated



To turn off the Recurring Event CheckBox.  I am also disabling the

"RecurrencePatternPanel" in these events.  However, when I cancel an AppointmentInsert or an AppointmentUpdate, (i.e. set e.cancel = true) in either event, I get the END date CLEARED (not desired) and the RecurrencePanel on display.  Please let me know how to turn this thing off in any event.

ALSO, In AppointmentEdit and AppointmentInsert events, I am tring to have the EndDate control (Date only field) dependent upon the StartDate Control.  So I have this code:

 

endDate.DatePopupButton.Enabled =

false;

 

 

endDate.DatePopupButton.Visible =

false;

 

startDate.Calendar.ShowRowHeaders =

false;

 

endDate.Calendar.SelectedDate = startDate.Calendar.SelectedDate;

endDate.SharedCalendar = startDate.Calendar;

endDate.SharedCalendarID = startDate.Calendar.ID;

startDate.AutoPostBack =

true;



 

I have tried adding 3 server side events fro the startDate, but none of them fire:

startDate.SelectedDateChanged +=

new SelectedDateChangedEventHandler(this.SelectedDateChanged);

 

startDate.Calendar.DefaultViewChanged +=

new DefaultViewChangedEventHandler(this.Calendar_DefaultViewChanged);

 

startDate.Calendar.SelectionChanged +=

new SelectedDatesEventHandler(this.SelectedDateChange);

 

... so what I end up with is a StartDate (TextBox) with the user's selected Date, and the original date in the EndDate (TextBox).  I have tried to find that box by searching for the control "To", but have been unsuccessful.

Please let me know how.

Thanks.

JOAN.

0
Peter
Telerik team
answered on 05 Nov 2008, 10:01 AM
Hello folks,

Back to the original question which Maria asked - "I don't want to use reccurency functionality. Is there any way I can turn it off?"

I am glad to inform you that with Q3 2008 release RadScheduler will expose a new property:

EnableRecurrenceSupport - can be used to disable recurrence support when using custom providers.
 
When binding to a data source, setting DataRecurrenceField and DataRecurrenceParentKeyField to empty string also disables recurrence. For example, removing the hightlighted lines below will do the trick:

<telerik:RadScheduler  
        ID="RadScheduler1"   
        runat="server" 
        DataEndField="End"   
        DataKeyField="ID" 
        DataRecurrenceField="RecurrenceRule"   
        DataRecurrenceParentKeyField="RecurrenceParentID"   
        DataSourceID="AccessDataSource1" 
        DataStartField="Start"   
        DataSubjectField="Subject"   
        onresourceheadercreated="RadScheduler1_ResourceHeaderCreated"


Sincerely yours,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Maria
Top achievements
Rank 1
Answers by
Maria
Top achievements
Rank 1
Simon
Telerik team
Joan
Top achievements
Rank 1
Peter
Telerik team
Share this question
or