Hello,
We are using Telerik Silverlight Controls 2012 Q2. We're attempting to achieve the following:
We have a custom appointment that has a Task. This Task can be completed or not. When the user makes an appointment with recurrence, he will be able to completed the Task separately for each recurrence.
So if he has an appointment that has a daily recurrence starting today:
06/02/2013 - Task Completed
07/02/2013 - Task Not Completed
....
When the user opens the appointment he can see if he completed the Task. The user now wants to see this in the Day/Week/Month view without having to open the task. I know I should be adjusting the AppointmentItemTemplate in order to achieve this, however the AppointmentItemTemplate only allows binding to the appointment itself, and not to its occurrences.
Is there any way to show Occurrence data in the AppointmentItemTemplate (it should I imagine, since Start and End do show the Occurrence data).
Something like this, but where TaskCompleted is actually part of the Occurrence instead of the appointment.
The TaskCompleted is added to the Storage of the appointment.
Any ideas how to get this functionality?
We are using Telerik Silverlight Controls 2012 Q2. We're attempting to achieve the following:
We have a custom appointment that has a Task. This Task can be completed or not. When the user makes an appointment with recurrence, he will be able to completed the Task separately for each recurrence.
So if he has an appointment that has a daily recurrence starting today:
06/02/2013 - Task Completed
07/02/2013 - Task Not Completed
....
When the user opens the appointment he can see if he completed the Task. The user now wants to see this in the Day/Week/Month view without having to open the task. I know I should be adjusting the AppointmentItemTemplate in order to achieve this, however the AppointmentItemTemplate only allows binding to the appointment itself, and not to its occurrences.
Is there any way to show Occurrence data in the AppointmentItemTemplate (it should I imagine, since Start and End do show the Occurrence data).
Something like this, but where TaskCompleted is actually part of the Occurrence instead of the appointment.
<
DataTemplate
x:Key
=
"AppointmentItemTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Task Completed"
Visibility
=
"{Appointment.TaskCompleted, Converter={StaticResource BooleanToVisibilityConverter}"
/>
<
TextBlock
Text
=
"{Binding Start, StringFormat='HH:mm'}"
TextWrapping
=
"Wrap"
/>
<
TextBlock
Text
=
"-"
TextWrapping
=
"Wrap"
/>
<
TextBlock
Text
=
"{Binding End, StringFormat='HH:mm'}"
TextWrapping
=
"Wrap"
Margin
=
"0,0,5,0"
/>
<
TextBlock
Text
=
"{Binding Subject}"
TextWrapping
=
"Wrap"
TextTrimming
=
"WordEllipsis"
/>
</
StackPanel
>
</
DataTemplate
>
The TaskCompleted is added to the Storage of the appointment.
Any ideas how to get this functionality?