In order to achieve the required scenario, you will need to customize the EditAppointmentDialog through the EditAppointmentDialogStyle property of the ScheduleView. For detailed instructions on the exact approach please check the Custom Dialogs
article in our documentation.
After retrieving the EditAppointmentDialog ControlTemplate, you can directly remove the TimeMarker ComboBox ( it is with name=PART_TimeMarkers) and set the ClearSelectionButtonVisibility
property of the Categories ComboBox ( with name=PART_Categories) to "Collapsed". Additionally, you could bind its IsEnabled
property to the ViewMode
property of the AppointmentDialogViewModel. ViewMode has three values according to the way the dialog is opened: Add, Create and ReadOnly. So using a converter and according to the ViewMode value, you could enable/disable the ComboBox.
I have attached a sample example to demonstrate all above, please note that I've used Implicit Styles
to set the theme as this approach makes such customizations much easier ( you do not need to copy all the referenced resources).
The same approach can be used with the resources. Furthermore, in order to disable the the dragging of the appointments you should customize the ScheduleView DragDropBehavior as explained in this help topic
I hope this will be helpful.
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.