8 Answers, 1 is accepted
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.
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.
Thanks
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.
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
I have solved this problem by disabling the recurrence text box in the
RadScheduler1_AppointmentCommand
when the command is cancel.Thanks for your help.
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.
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.