setOptions

Redraws the widget with the new options. Accepts the same configuration options as the widget constructor.

Parameters

options Object

The new configuration options.

Example - change the items and layout mode

<div id="segmentedControl"></div>
<script>
$("#segmentedControl").kendoSegmentedControl({
  items: [
    { text: "Option 1", value: "option1" },
    { text: "Option 2", value: "option2" }
  ]
});
var segmentedControl = $("#segmentedControl").data("kendoSegmentedControl");
segmentedControl.setOptions({
  layoutMode: "stretch",
  items: [
    { text: "Alpha", value: "alpha" },
    { text: "Beta", value: "beta" }
  ],
  selectedValue: "beta"
});
</script>
In this article
setOptions
Not finding the help you need?
Contact Support