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

Prepopulating subject field of a new appointment

3 Answers 79 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
TS
Top achievements
Rank 1
TS asked on 10 Jun 2010, 10:17 PM
Hello

Is there a simple way to prepopulate the subject field of a new appointment box?

Thanks,
TS

3 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 16 Jun 2010, 01:38 PM
Hi TS,

Thank you for writing.

There are two ways to do this, depending of how you start this dialog. If you open the dialog from code you could use the following code snippet:
 
new EditAppointmentDialog(new Appointment(DateTime.Now, new TimeSpan(1,0,0), "your subject write here"), this.radScheduler1).Show();
 
In the other case you should inherit EditAppointmentDialog and set the subject field's text. Please, note that you need to know whether the appointment is new or it is in edit mode in order to write/override the subject. After that you could replace edit appointment dialog as described in the scheduler help.
 
I hope this will help you. Feel free to contact me for further questions.

All the best,
Dobry Zranchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mike
Top achievements
Rank 1
answered on 10 Sep 2010, 12:41 AM
how do you determine if the appointment is new or in edit mode?  Is this condition tested in the

RadScheduler1_AppointmentEditDialogShowing  event? 

0
Dobry Zranchev
Telerik team
answered on 10 Sep 2010, 05:53 PM
Hello Mike,

Thank you for writing back.

The idea of the dialog is to only manipulate appointments that you assign to it. The EditAppointmentDialog edits appointments regardless of whether the appointment is a new one, or an existing one. You just need to know which appointment you are trying to edit (new or existing).

If you have other questions, feel free to contact us.

Best wishes,
Dobry Zranchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler and Reminder
Asked by
TS
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Mike
Top achievements
Rank 1
Share this question
or