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

Custom appointment property and UI update

1 Answer 65 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Krzysztof
Top achievements
Rank 1
Krzysztof asked on 13 Nov 2012, 01:40 PM

Dear Telerik Team!

I use custom appointment which inherits from EntityObject. What I want to achieve is to place a button on an appointment, so I placed following code on the custom appointment template:

<Button Grid.Column="0" Grid.Row="1" Content="{Binding Appointment.Approved}" Width="50" Height="50" prism:Click.CommandParameter="{Binding Appointment.Id}" prism:Click.Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.TaskApprovalCommand}" />

I'm able to click the button and execute its command, but when I change "Approved" property the UI is not updating. When I try to bind the content of the button to some other property, like "Subject" it is working fine. The problem is with custom properties, the ones which are not part of original appointment class. Could you please suggest some solution for that problem? I'd be very grateful.

Many thanks and best regards
Krzysztof Kaźmierczak

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 19 Nov 2012, 10:05 AM
Hi Krzysztof,

Please check this Code Library - it seems that the described approach will work in your case.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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