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

AppointmentTemplate just overrides the "Category" template ?

1 Answer 64 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 06 May 2011, 11:15 AM
Hi Telerik,

I use a DataTemplate along with  AppointmentItemContentTemplate:
                                 AppointmentItemContentTemplate="{StaticResource AppointmentTemplate}"

Now this DataTemplate has a Visibility property which can be set to Collapse, and I expect the appointment to be invisible. But the thing is that the background Color of the appointment Category is showed anyway.

So how can I do to override this behavior ?

Best regards

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 11 May 2011, 03:58 PM
Hi Phil,

You can use the AppointmentItemContentTemplate to provide a DataTemplate and  choose how to present data inside the appointment. However, the Borders of the AppointmentItem, including the category Border,  are part of the ControlTemplate of the AppointmentItem, so you cannot hide them with a Visibility property from a DataTemplate.

If you wish to filter appointments and provide a way to hide some of them conditionally, with the current implementation of RadScheduleView this is not possible. What you could do is try using the AppointmentItemStyleSelector and provide a different style to distinguish a group of appointments over another group of appointments.

As a side note, since the filtering of appointments is a much requested feature, we will do our best to include it in one of the nearest upcoming releases.

All the best,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Phil
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or