select

Fires when a Button is selected.

    <div data-role="view">
      <ul id="buttongroup" data-role="buttongroup" data-select="onSelect">
        <li>Option 1</li>
        <li>Option 2</li>
        <li>Option 3</li>
      </ul>
    </div>


    <script>
    var app = new kendo.mobile.Application();

    function onSelect(e) {
      var index = this.current().index();
    /* The result can be observed in the DevTools(F12) console of the browser. */
      console.log(index);
    }
    </script>

Event Data

e.index Number

The index of the selected button

In this article