How do I open the default edit appointment form with code only

3 posts, 0 answers
  1. Bassel
    Bassel avatar
    5 posts
    Member since:
    Jun 2017

    Posted 14 Jun 2017 Link to this post

    In VB.net please,

     

    I need to open the default edit form for a an appointment in MyRadScheduler.Appointments, so I just need to simulate the double click on an appointment, but using only code.

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3324 posts

    Posted 14 Jun 2017 Link to this post

    Hello Bassel, 

    Thank you for writing.  

    Here is a sample code snippet demonstrating how to show programmatically the EditAppointmentDialog:
    public RadForm1()
    {
        InitializeComponent();
     
        this.radScheduler1.Appointments.Add(new Appointment(DateTime.Now, TimeSpan.FromHours(2), "Meeting"));
    }
     
     
    private void RadForm1_Shown(object sender, EventArgs e)
    {
        this.radScheduler1.ShowAppointmentEditDialog(this.radScheduler1.Appointments[0], false);
    }

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Bassel
    Bassel avatar
    5 posts
    Member since:
    Jun 2017

    Posted 14 Jun 2017 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thanks, Dess!
Back to Top