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

Deselect appointment/appointments from a viewmodel

2 Answers 11 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 06 Jan 2016, 02:42 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 08 Jan 2016, 10:54 AM
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
0
Nick
Top achievements
Rank 1
answered on 08 Jan 2016, 11:19 AM

Hey Nasko,

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

Thanks,

NA

Tags
ScheduleView
Asked by
Nick
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Nick
Top achievements
Rank 1
Share this question
or