Custom appointment property and UI update

2 posts, 0 answers
  1. Krzysztof
    Krzysztof avatar
    14 posts
    Member since:
    Oct 2007

    Posted 13 Nov 2012 Link to this post

    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

  2. Yana
    Yana avatar
    4931 posts

    Posted 19 Nov 2012 Link to this post

    Hi Krzysztof,

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

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top