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

how can I use AppointmentEditDialogShowing

3 Answers 222 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Sunho
Top achievements
Rank 1
Sunho asked on 22 Jul 2013, 08:28 AM
Hi I don't have chance to use c# and radcontrol .

so please help me .

I want to know AppointmentEditDialogShowing method use,

If  "Scheduler_AppointmentResized" activate like this

   private void Scheduler1_AppointmentResized(object sender, Telerik.WinControls.UI.AppointmentResizedEventArgs e)
        {
            //this.radScheduler1_AppointmentEditDialogShowing(sender,e);
           //this.radScheduler1_AppointmentEditDialogShowing();
          
     
        }
I want to show the AppointmentEditDialog, but i don't know the method 




3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Jul 2013, 03:21 PM
Hello Sunho,

Thank you for contacting Telerik Support.

After subscribing for radScheduler1_AppointmentResized event you may use the following code snippet to show EditAppointmentDialog when resizing an appointment:
private void radScheduler1_AppointmentResized(object sender, Telerik.WinControls.UI.AppointmentResizedEventArgs e)
        {
            Appointment myAppointment = e.Appointment as Appointment;
            if (myAppointment != null)
            {
                RecurrenceRule rule = myAppointment.RecurrenceRule;
                bool isRecurring = rule == null ? false : true;
                this.radScheduler1.ShowAppointmentEditDialog(e.Appointment, isRecurring);
            }
        }

Double-click an appointment and the “Editor Appointment Dialog” is also shown by default. I think that the following help article will be very useful: http://www.telerik.com/help/winforms/scheduler-end-user-functionality-editing-appointments.html.

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

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Sunho
Top achievements
Rank 1
answered on 01 Aug 2013, 05:14 AM
Thank you for your help 

It's very helpful ^^


Can i ask some more ??

I made edit appointment form

I want to show . when double click event , my appointment form replace basic appointment form 

i see the inherit method but i don't know that 

here is my code  how can I use the code?

and one more Question 

I try to show the appoint view in schedule, how to use it ?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
using Telerik.WinControls.UI.Scheduler.Dialogs;
 
 
namespace IntegrationOrder.Manager.SubForms
{
    public partial class SubFormSchedule : Telerik.WinControls.UI.RadForm
    {
        private IEvent appointment = null;
        private ISchedulerData schedulerData = null;
      }
}
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Aug 2013, 01:07 PM
Hello Sunho,

Thank you for writing back.

In order to achieve your goal, you should subscribe to the AppointmentEditDialogShowing event and prevent the default AppointmentEditDialog from displaying. Thus you can make your own form to be visualized on the screen. Please have a look at the following code snippet:
public partial class SubFormSchedule : Telerik.WinControls.UI.RadForm
    {
        private IEvent appointment = null;
        private ISchedulerData schedulerData = null;
 
        public SubFormSchedule(IEvent appointment)
        {
            InitializeComponent();
 
            this.appointment = appointment;
 
            //to be continued... fill the form with the appropriate data
            this.radTextBoxControl2.Text = this.appointment.Description;
        }
 
        public SubFormSchedule()
        {
            InitializeComponent();
        }
    }

private void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
        {
            Appointment myAppointment = e.Appointment as Appointment;
            e.Cancel = true;
 
            SubFormSchedule myForm = new SubFormSchedule(myAppointment);
            myForm.Show(); //myForm.ShowDialog();
        }

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

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Scheduler and Reminder
Asked by
Sunho
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Sunho
Top achievements
Rank 1
Share this question
or