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

radScheduler Edit Appointment Form Size

19 Answers 279 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 30 May 2013, 02:43 AM
Having problem in Edit Appointment Form Size 
can some one help me. . 

Just Click the attached file

Thanks


Windows 7 Enterprise SP1
En-PH
.Net 4.5
RadControls (Q1 2013) v2013.1.220.40 Dev

19 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Jun 2013, 06:37 PM
Hello Gary,

Thank you for writing.

In your case you should manually set the dialog's Size property:
    this.radScheduler1.AppointmentEditDialogShowing += new EventHandler<Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs>(radScheduler1_AppointmentEditDialogShowing);
 
 
void radScheduler1_AppointmentEditDialogShowing(object sender, Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs e)
{   
    EditAppointmentDialog dialog = (EditAppointmentDialog)e.AppointmentEditDialog;
    dialog.Size = new Size(800, 800);
}

I hope this helps.

Regards,
Peter
Telerik
RadChart for WinForms is obsolete. Now what?
0
Gary
Top achievements
Rank 1
answered on 11 Jun 2013, 10:45 AM
Hello Peter,

Thank you for the code that you give. But still not working, how ever the dialog form has been change but the buttons still now slow,
I think the control inside the dialog form has been anchored to an edges,

I also try the trial version but still not working :(

Regards,
Gary


0
Peter
Telerik team
answered on 14 Jun 2013, 10:01 AM
Hello Gary,

This approach works fine on my end. I am able to access every control in this dialog through dialog control collection. For example:
  void radScheduler1_AppointmentEditDialogShowing(object sender, Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs e)
        {
 
            EditAppointmentDialog dialog = (EditAppointmentDialog)e.AppointmentEditDialog;
            dialog.Controls["buttonOK"].Anchor = AnchorStyles.None;
//Set location
            dialog.Controls["buttonOK"].Location = new Point( ....
            dialog.Size = new Size(800, 800);
 
        }

I hope this helps.

Regards,
Peter
Telerik
RadChart for WinForms is obsolete. Now what?
0
Harry
Top achievements
Rank 1
answered on 11 Feb 2015, 10:26 AM
Hello sir,

I need help in radScheduler what i need is:

On click of appointment i need to open my form instead of opening default Edit appointment form.
How can i do this.

Please reply me as soon as possible.

Thanks
Harry
0
Stefan
Telerik team
answered on 11 Feb 2015, 10:49 AM
Hi Harry,

Thank you for writing.

You can use the AppointmentEditDialogShowing event to do that. Here is an article with explanations and example of this scenario: http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-adding-a-custom-field-to-the-editappointment-dialog.html.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Harry
Top achievements
Rank 1
answered on 12 Feb 2015, 07:22 AM
Hi Stefan,

Thanks for your reply. But i need completely different form i don't want event 1 control of this Edit Appointment for. I need to show another form instead of deriving from EditAppointmentDialog, by deriving from EditAppointmentDialog all controls automatically comes which i don't want. Please share your thoughts.

Thanks,
Harry
0
Stefan
Telerik team
answered on 12 Feb 2015, 07:33 AM
Hello Harry,

If you want to completely cancel the dialog, you can use the event arguments and set e.Cancel = true, then do whatever you need to.

If you want to show a form, that will be used to edit the appointment, this form have to implement the IEditAppointmentDialog interface and should be assigned to the AppointmentEditDialog property of the same event.

I hope this clears things up.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Harry
Top achievements
Rank 1
answered on 12 Feb 2015, 09:23 AM
Thanks Stefan,

But I didn't get this point can you please explain breifly:

this form have to implement the IEditAppointmentDialog interface and
should be assigned to the AppointmentEditDialog property of the same
event.

Please explain in detail.

Thanks for your help
0
Stefan
Telerik team
answered on 12 Feb 2015, 11:16 AM
The idea of the edit appointment dialog, is to edit the appointment you clicked. With the dialog, as you can see, you can change all kinds of properties of the appointment - StartDate, Descrption, EndDate, etc. So, if you want a custom dialog to be used to edit appointments, this custom dialog, should implement the IEditAppointmentDialog interface, as this is the way the scheduler communicates with the dialog. 

The interface has a method you should implement, called EditAppointment. In this method, you have the scheduler instance and the appointment instance. In the implementation of this method in your dialog, you will receive the appointment being edited, and you can customize its properties and the return it, so the scheduler can apply the changes - e.g.you can put a text box in your custom dialog, and get the text the user entered in it and assign it to the Description property of the appointment you get in the method.

I hope this clears things up.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Raja
Top achievements
Rank 1
answered on 09 Mar 2016, 08:02 AM
Hi all, How to edit update delete in radscheduler same as Radgrid Format? please reply anyone..
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 Mar 2016, 01:46 PM
Hello Raja,

Thank you for writing.

RadScheduler offers two options to edit an appointment:
- Edit an appointment using an Edit Appointment Dialog
- Edit an appointment using an in-place editor
Additional information is available at the following help article: http://docs.telerik.com/devtools/winforms/scheduler/end-user-functionality/editing-appointments-

As to the delete options, please refer to the Scheduler >> Resizing, Moving and Deleting Appointments help article >> Deleting Appointments section.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Raja
Top achievements
Rank 1
answered on 24 Mar 2016, 06:00 AM

Hi Dess,

How to get radscheduler selected date and showing the textbox.. not in radscheduler appoinments date or id.

thanks..

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Mar 2016, 03:32 PM
Hello Raja,

Thank you for writing back. 

If I understand correctly you are trying to activate the inline editor for the selected date in RadScheduler. Note that when you start typing, a visual appointment element is added to the scheduler view element which allows the text box editor to be initialized for a temporary appointment. However, in order to force the You can find below a sample code snippet demonstrating how to achieve it:
private void radButton1_Click(object sender, EventArgs e)
{
    DateTimeInterval selectedInterval = this.radScheduler1.SelectionBehavior.GetSelectedInterval();
    IEvent appointment = this.radScheduler1.ViewElement.CreateTemporaryAppointment(
        "new event", selectedInterval.Start, selectedInterval.End,
        this.radScheduler1.SelectionBehavior.IsAllDayAreaSelection || this.radScheduler1.ActiveViewType == SchedulerViewType.Month,
        this.radScheduler1.SelectionBehavior.SelectedResourceId);
 
    if (appointment != null)
    {
        this.radScheduler1.SelectionBehavior.SelectAppointment(appointment, false);
        this.radScheduler1.ViewElement.InvalidateMeasure(true);
        this.radScheduler1.ViewElement.UpdateLayout();
 
        radScheduler1.SchedulerElement.EditorManager.BeginInlineEdit();
    }
}

If it is not the exact requirement, please specify in details what is the goal that you are trying to achieve. Thus, we would be able to think about a suitable solution and assist you further. Thank you.

I hope this information helps. If you have any additional questions, please let me know.

 Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Raja
Top achievements
Rank 1
answered on 25 Mar 2016, 12:14 PM

Hi Dess,

I have a Rad scheduler and Rad Button in a form, on button click I am trying to get the selected date from the rad scheduler.

I tried the "Radscheduler.SelectedDate" which always seems to return the current date instead of selected date.

Regards

Raja.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Mar 2016, 01:18 PM
Hello Raja,

Thank you for writing back. 

SchedulerSelectionBehavior performs selection operations and provides information about the current selection of cells and appointments in RadScheduler. You can use the RadScheduler.SelectionBehavior.GetSelectedInterval method which returns the selected DateTimeInterval.

Additional information is available at the following link: http://docs.telerik.com/devtools/winforms/scheduler/fundamentals/scheduler-selection

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Raja
Top achievements
Rank 1
answered on 23 Apr 2016, 07:34 AM

Hi Dess,

How to add year View option in rad scheduler and Combo-box Control same place, it is possible in web-form.

please tell me or send any idea. thanks

regards 

Raja

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Apr 2016, 10:43 AM
Hello Raja,

Thank you for writing back. 

This forum is related to the Telerik UI for WinForms suite. If the product that you use is different, feel free to open a support thread with the correct product or post your question in the relevant forum: http://www.telerik.com/forums

I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Raja
Top achievements
Rank 1
answered on 30 Apr 2016, 06:58 AM

Hi sir,

i have used Radscheduler one Combobox controls.then radscheduler GroupBy="AAA"  and i have create a ResourceType in Design part.. now i have select the Combobox selected text, still stage scheduler resources name showing and also appoinment , but without appoinment resources NAME also coming in radscheduler.. please tell me any idea. i am used Webform not in Winform...

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 May 2016, 11:07 AM
Hello Raja,

Thank you for writing back. 

This forum is related to the Telerik UI for WinForms product. Feel free to post your questions regarding other products in the relevant forum: http://www.telerik.com/forums

Thank you for your understanding.

Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler and Reminder
Asked by
Gary
Top achievements
Rank 1
Answers by
Peter
Telerik team
Gary
Top achievements
Rank 1
Harry
Top achievements
Rank 1
Stefan
Telerik team
Raja
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or