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

jQuery SegmentedControl Items Width Modes

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
items-width.html

Also available for:

API REFERENCE

Description

The Kendo UI for jQuery SegmentedControl supports two layout modes that control how segment widths are calculated and how the component fits within its container.

In compact mode (the default), each segment's width is determined by its own content—label text and padding. Segments can have unequal widths, and the component's total width equals the combined widths of all its segments. The component does not stretch to fill its container.

In stretch mode, the control expands to fill the full width of its container. All segments share that width equally, regardless of label length. Each segment's width is calculated as the container width divided by the number of segments.

Use the Layout Mode configurator above to switch between modes and observe how the segment widths respond to the intentionally uneven label lengths.

This SegmentedControl example is part of a unique collection of hundreds of jQuery demos, with which you can see all Kendo UI for jQuery components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Kendo UI for jQuery Dojo or ThemeBuilder.

Support & Learning Resources

Additional Resources