Skip to main content

Create a Control

To create a control:

  1. Call the DevExtreme() HtmlHelper extension method.
  2. Call the control’s builder method.
@(Html.DevExtreme()
    .Button() // creates a Button control
)

If you create a control inside a code block, end the configuration with a Render() method call.

@{
    Html.DevExtreme().Button()
        // ...
        // other Button control options go here
        // ...
        .Render()
}