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

Custom Appointment Questions

3 Answers 76 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 17 Oct 2011, 10:39 PM
I'm trying to build a custom appointment dialog to meet some very specific schedulinging demands.

Mainly, I would like to set up a custom dialog that hides various controls that refer to recurrency and category. I would also like to change the title at the top of the dialog from "Appointment" to some other word. The current documentation shows how to add custom controls, but hide or delete them, and set their relevant values in the code of my View Model.

Is any of this possible?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Oct 2011, 02:47 PM
Hi Eric,

You can hide controls in the custom EditAppointmentDialog by binding their Visibility property to some property in your custom appointment class,  for example:

Visibility="{Binding Occurrence.Appointment.CustomBoolProperty, Converter={StaticResource BooleanToVisibilityConverter}}"

or some property in the ViewModel as explained in this help article.

You can also check here and here for additional information about customizing the EditAppointmentDialog.

Hope this helps. If you need further assistance, contact us again.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Eric
Top achievements
Rank 1
answered on 18 Oct 2011, 05:10 PM
Thanks, I've already seen those articles, and although helpful, they would be much more so if they had an example code file attached to them.

The converter makes sense, but as far as I can see, I would only be able to change the visibility of a control that I have added to the dialog. I want to change the visibility of a control that is in the default dialog box. If it is possible to change those default controls, how do I access the names of the controls in order to do so?
0
Yana
Telerik team
answered on 19 Oct 2011, 01:28 PM
Hi Eric,

I've attached a simple example with the default EditAppointmentDialog. You can find all the controls used in the template and set the needed properties to them.

Hope this helps. If you need further assistance, contact us again.

Best wishes,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Eric
Top achievements
Rank 1
Answers by
Yana
Telerik team
Eric
Top achievements
Rank 1
Share this question
or