Trouble Finding Selected Button

2 posts, 0 answers
  1. Shawn R.
    Shawn R. avatar
    4 posts
    Member since:
    Nov 2008

    Posted 21 Feb 2012 Link to this post

    Could you please provide the code for finding the selected button in a button group. 

    The documentation says there is a method called current() that will "Get the currently selected Button" and that it returns a jQueryObject of the selected button.

    I use:
    var buttongroup = $("#buttonGroup").data("kendoMobileButtonGroup")

    and then I'm trying to use

    buttongroup.current() 

    which does indeed return a jQueryObject, but it looks like the buttongroup and not the selected button. I've used firebug and been all over the return object from buttongroup.current() and can't find a thing that helps me with what is selected.

    I'm sure it's something stupid.

    Thanks - Shawn
  2. Shawn R.
    Shawn R. avatar
    4 posts
    Member since:
    Nov 2008

    Posted 21 Feb 2012 Link to this post

    This was related to my nested groupbutton HTML problem found here:
    http://www.kendoui.com/forums/mobile/listview/format-issue-with-nested-button-groups.aspx 

    Once that was corrected this:
    $("#GroupButton").data("kendoMobileButtonGroup").current().index()

    worked as expected.

    Thanks - Shawn
  3. Kendo UI is VS 2017 Ready
Back to Top