New to Kendo UI for jQueryStart a free 30-day trial

Index

Updated over 6 months ago

You can configure the initially selected index of the Kendo UI ButtonGroup by using its index property.

You can also select an index through the select method with a Integer argument.

The following example demonstrates how to select a button by its index.

html
<ul id="buttongroup">
	<li>Option 1</li>
	<li>Option 2</li>
	<li>Option 3</li>
</ul>

<script>

$(function(){
	var buttongroup = $("#buttongroup").kendoButtonGroup({
		index: 0
	}).data("kendoButtonGroup");
	// ...
	// Select a button at index 1.
	buttongroup.select(1);
});

</script>

See Also

In this article
See Also
Not finding the help you need?
Contact Support