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

Uncheck all radio buttons in group using MVVM

3 Answers 664 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 14 Mar 2013, 10:03 PM
How do I uncheck all radio buttons in a group? I'm trying to add a "save and reset" button to a form so the data posts and then the form resets.

Initially, when the form loads, no radio button is checked. Then the user checks a button and saves the form. A reset function is called. In it I set the view model property that is bound to radio checked to null. I would think that should uncheck the radio group but it doesn't.

Here's a jsbin.

Thanks,
Jon

3 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 18 Mar 2013, 03:56 PM
Hello Jon,

Thank you for providing the jsbin. Indeed the checked binding only updates the model according to the selection and vise-versa. However un-checking is not currently supported. 

A a work-around I could suggest you to uncheck the value manually with jQuery since the MVVM cannot handle it. 

Do not hesitate to share an idea on the Kendo User Voice page to improve the MVVM framework to support this scenario.

Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jianwei
Top achievements
Rank 1
answered on 04 Dec 2014, 07:50 PM
Is this still an issue?
0
Petur Subev
Telerik team
answered on 08 Dec 2014, 07:43 AM
Hello Jianwei,

The implementation of the checked radio binding is still working the same way. Sadly cannot find any idea created on the feedback portal for the same.

http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
Jon
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Jianwei
Top achievements
Rank 1
Share this question
or