Deselect ButtonGroup

4 posts, 0 answers
  1. Marlon
    Marlon avatar
    16 posts
    Member since:
    Jul 2013

    Posted 21 Oct 2013 Link to this post

    I have a buttongroup inside a modal view and I'd like to reset the button group's selection each time the modal view is opened. What's the best way to do this? I can't seem to find a way to clear the selection.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 23 Oct 2013 Link to this post

    Hi Marlon,

    There is no built in way to reset the selection of the button group. However you can remove the styling that highlights the button and set the selectedIndex to undefined, which will do practically the same. Please check the following example:

    http://jsbin.com/eVepOPa/1/edit
     

    Regards,
    Kiril Nikolov
    Telerik
    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. Steven
    Steven avatar
    32 posts
    Member since:
    Jul 2012

    Posted 12 Dec 2013 Link to this post


    I am playing around with it and here is something I came up with still a work in progress.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 14 Dec 2013 Link to this post

    Hi Steven,

    Thank you very much for sharing this with us.

    I am sure it will be helpful for people with a similar problems.

    Regards,
    Kiril Nikolov
    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