Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Add Controls to a Project

Follow the instructions below to add a control to your application:

  1. Open a Razor file (.cshtml).
  2. Call the DevExtreme() HtmlHelper extension method.
  3. Call the control’s builder method.

For example, the following code adds the Button control to the Index.cshtml file:

@using MyApp.Models

<h2>Home</h2>

@(Html.DevExtreme()
    .Button() // adds the Button control
    // specifies the control's id and text
    .ID("submitButton")
    .Text("submit")
)

Refer to Create a Control and Scaffold Controls for more information on how to configure controls.