How to Change the "Edit Appointment Dialog Windows" Labels and dropdownlist value

8 posts, 0 answers
  1. Mahesh
    Mahesh avatar
    5 posts
    Member since:
    May 2009

    Posted 22 May 2009 Link to this post

    HI,

    I wanted to change the Edit Appointment Dialog window labels and dropdownlist values.
    For example - Insted if "Subject label" i want to display "Patient Name" and i want to change Dropdownlist values?
    1) I have followed the below step but not possible to change the label text but i can do the label visible false or true.
    2) How to change the Dropdownlist vaues?
    3) How to add one more dropdownlist inside the Edit Appointment Dialog Window?

    CODE:

    CustomAppointmentDialog

    appointmentDialog = null;

     

     

    private void radSchedulerDemo_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)

     

    {

     

    if (this.appointmentDialog == null)

     

    {

     

    this.appointmentDialog = new CustomAppointmentDialog();

     

    }

    e.AppointmentEditDialog =

     

    this.appointmentDialog;

     

    }

     

     

     

    public class CustomAppointmentDialog : EditAppointmentDialog

     

    {

     

    public CustomAppointmentDialog()

     

    :

     

    base()

     

    {

     

     

    this.Controls["lblSubject"].Text = "Patient";

     

     

    }

    }

  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 22 May 2009 Link to this post

    Hi Mahesh,

    You can do this by inheriting from the default appointment edit dialog, making any changes that  you want, and then telling RadScheduler to use your custom dialog using the AppointmentEditDialogShowing event.

    Once you have inherited from the default dialog you will be able to access the editor controls through the protected fields. And the labels you will be able to access through the controls collection.

    Or if all you want is to change the text properties of the labels you could create a very simple localization provider.
    You can find an example for all this in the following forum thread:
    http://www.telerik.com/community/forums/winforms/scheduler/edit-appointment-dialogue.aspx

    Regarding the values in the combo boxes, you can change the items in the Backgrounds, Statuses and Resources collections of RadScheduler.

    Do write back if you need more information or  have more questions.

    Greetings,
    Jordan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Will H
    Will H avatar
    2 posts
    Member since:
    Oct 2009

    Posted 16 Oct 2009 Link to this post

    I would like to do the same things as this person, but the examples on this thread http://www.telerik.com/community/forums/winforms/scheduler/edit-appointment-dialogue.aspx are all in C# and i'm using VB.Net... any help?

    Im using VS2008 VB.net (C# is not an option at this point or i would have been done days ago)
    I am using RadScheduler and i want to add some options to it (such as client being booked, ane employee being booked. I have successfully inherited the edit appointments form, i think, but its empty. No controls are on the form.


    Thank you
    -AC
  5. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 21 Oct 2009 Link to this post

    Hi Will H,

    Did you try using our code converter to convert the code to VB.NET:
    http://converter.telerik.com/

    Also, there is an example of inheriting the default appointment edit dialog and adding more details in the data binding example of RadScheduler (in our Demo application).

    Greetings,
    Jordan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. alexander arias
    alexander arias avatar
    2 posts
    Member since:
    Mar 2004

    Posted 14 Jun 2010 Link to this post

    Hi, I followed steps you wrote above and I got a editAppointmentDialog with all controls blocked... so I need to build my own form. I mean change txtSubject by a dropdownlist and show a list of subjects... remove resources options... so how can I do that??? please help me!!!
  7. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 17 Jun 2010 Link to this post

    Hello alexander arias,

    Please follow the instructions in the custom EditAppointmentDialog's help topic.

    You could also inherit the EditAppointmentDialog, hide the txtSubject field, add your dropdown and override the EditAppointmentDialog methods LoadSettingsFromEvent and ApplySettingsToEvent in order to read from appointment to your dropdown and write to appointment from your dropdown.

    Regards,
    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.
  8. illumination
    illumination avatar
    85 posts
    Member since:
    May 2008

    Posted 27 Sep 2011 Link to this post

    The link is no longer work. I need to make the subject from text to rad combobox for edit and insert. I'm currently using Advanced form template to achieve all the information in radscheduler. And I'm using asp.net ajax for webform, not winform. Please help. Thanks.
  9. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Sep 2011 Link to this post

    Hello Lina,

    We have recently created a new chapter on customizing the advanced form. Please, review it and let us know if it helped you with your task. We will also appreciate if you provide us with feedback and suggestions on how to improve the help resource.


    All the best,
    Peter
    the Telerik team
    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 their blog feed now
Back to Top
UI for WinForms is Visual Studio 2017 Ready