Edit this page

select

Fires when a Button is selected.

Example - get the index of the currently selected Button

<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();
  console.log(index);
}
</script>

Event Data

e.index Number

The index of the selected button

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy