New to Kendo UI for jQuery? Start a free 30-day trial

Items

methods

Gets the DOM elements of all items in a jQuery collection.

Returns:jQuery

the items in the SegmentedControl.

<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");
var allItems = segmentedControl.items();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(allItems.length);
</script>
Not finding the help you need?
Contact Support