Skip to main content

FormItemEditorFactory.Switch() Method

Creates a Switch control that is used as a form item’s editor.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SwitchBuilder Switch()

Returns

Type Description
SwitchBuilder

An instance of SwitchBuilder.

Remarks

@(Html.DevExtreme().Form()
    .Items(items => {
        items.AddSimple()
            .Editor(e => e.Switch()
                // call methods in a chain to customize the control
            );
    })
)
See Also