select
Select a Button.
Note: Starting from R3 2020 release, calling the
select()method will no longer trigger theselectevent. That is the expected by design behavior of the widget. If you need to trigger theselectevent upon the method call, you should do that manually by calling thebuttongroup.trigger('select').
Parameters
li jQuery | Number
LI element or index of the Button.
Example
<ul id="buttongroup">
<li>Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
<script>
var buttongroup = $("#buttongroup").kendoButtonGroup().data("kendoButtonGroup");
// selects by jQuery object
buttongroup.select(buttongroup.element.children().eq(0));
// selects by index
buttongroup.select(1);
</script>
In this article