Prepopulating subject field of a new appointment

4 posts, 0 answers
  1. TS
    TS avatar
    5 posts
    Member since:
    Apr 2010

    Posted 10 Jun 2010 Link to this post

    Hello

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

    Thanks,
    TS
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 16 Jun 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mike
    Mike avatar
    7 posts
    Member since:
    Aug 2010

    Posted 09 Sep 2010 Link to this post

    how do you determine if the appointment is new or in edit mode?  Is this condition tested in the

    RadScheduler1_AppointmentEditDialogShowing  event? 

  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 10 Sep 2010 Link to this post

    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
Back to Top