focus
Focuses the SegmentedControl if no argument is provided. Or focuses on a specific item if an item index or jQuery element is supplemented.
Parameters
item Number|jQuery (optional)
The index of the item to focus, or a jQuery object representing the button element. If omitted, focuses the first enabled button.
Example - focus a specific item by index
<div id="segmentedControl"></div>
<script>
$("#segmentedControl").kendoSegmentedControl({
items: [
{ text: "Option 1", value: "option1" },
{ text: "Option 2", value: "option2" },
{ text: "Option 3", value: "option3" }
]
});
var segmentedControl = $("#segmentedControl").data("kendoSegmentedControl");
segmentedControl.focus(1);
</script>