DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.


The Switch component can be in two states: ON (when the value is true) and OFF (when the value is false). To respond to value changes, assign the handling function to the onValueChanged property.

If you want to change the Switch text, specify the switchedOnText and the switchedOffText properties. If the changed text does not fit in the component, use the width property.

Set the disabled property to true to disable the component.

Thank you for your interest in our ASP.NET Core product libraries and UI component suite. We are moving ASP.NET Core-related demos and content to Please make sure to update your bookmarks with our new URL.

View Demo