Deselect appointment/appointments from a viewmodel

3 posts, 1 answers
  1. Nick
    Nick avatar
    2 posts
    Member since:
    Feb 2014

    Posted 06 Jan Link to this post

    Hey,

    I am trying to deselect appointments from my viewmodel. I have tried setting the property that is bound to the selected value equal to null but that doesn't seem to work. Do you have any suggestions?

    Thanks

     NA

  2. Answer
    Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 08 Jan Link to this post

    Hello Nick,

    Setting the value to null should achieve desired by you functionality - please, check if the binding of the SelectedAppointment is TwoWay. We have also created a sample project that demonstrates that appraoch - notice that when the value is set to null the appointment is deselected.

    Hope this helps.

    Regards,
    Nasko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Nick
    Nick avatar
    2 posts
    Member since:
    Feb 2014

    Posted 08 Jan in reply to Nasko Link to this post

    Hey Nasko,

     Thanks for that, I hadn't made the binding two way. Rookie mistake. 

    Thanks,

    NA

Back to Top