Uncheck all radio buttons in group using MVVM

4 posts, 1 answers
  1. Jon
    Jon avatar
    15 posts
    Member since:
    Feb 2013

    Posted 14 Mar 2013 Link to this post

    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
  2. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 18 Mar 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Jianwei
    Jianwei avatar
    20 posts
    Member since:
    Feb 2011

    Posted 04 Dec 2014 in reply to Petur Subev Link to this post

    Is this still an issue?
  5. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 08 Dec 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready