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

Custom Resource Grouping in CustomEditAppointmentDialog

2 Answers 131 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
kareem
Top achievements
Rank 1
kareem asked on 16 Jul 2014, 01:17 PM
hi  i am trying  to make project like demo (Custom Appointment Dialog)

1- i can't display custom resources from database from class (CustomResource) in "CustomEditAppointmentDialog" Form 
2- save resource ID in table appointment  (IEvent).
3-create custom background class "AppointmentBackgroundInfo"   to override colors and  names .

Note :  i using  business object , resource  "relation one to many "

thank you



2 Answers, 1 is accepted

Sort by
0
kareem
Top achievements
Rank 1
answered on 20 Jul 2014, 09:47 AM
Any Answers?
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Jul 2014, 08:47 AM
Hello Kareem,

Thank you for writing.

Please find attached a sample project, demonstrating how to display a custom appointment (with email) in the custom EditAppointmentDialog. The specific resource is loaded correctly from the data base and it is stored after changes. There is a .bak file for the sample data base. The following help articles are quite useful about this topic:
As to the question related to creating AppointmentBackgroundInfo, here is a sample code snippet:
AppointmentBackgroundInfo abi = new AppointmentBackgroundInfo( 123, "Test", Color.LightCoral,Color.Coral ,Color.Black,Color.Black );
abi.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
this.radScheduler1.Backgrounds.Add(abi);
this.radScheduler1.Appointments.Last().BackgroundId =123;
this.radScheduler1.ViewElement.UpdateAppointmentElements();

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

Regards,
Desislava
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Scheduler and Reminder
Asked by
kareem
Top achievements
Rank 1
Answers by
kareem
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or