items

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

Returns

jQuery the items in the SegmentedControl.

Example - get all items

<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>
In this article
items
Not finding the help you need?
Contact Support