EditorExtension.GetValue<T>(String) Method

Returns a specific editor's value.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll


public static T GetValue<T>(
    string name
Public Shared Function GetValue(Of T)(
    name As String
) As T


Name Type Description
name String

A string specifying the editor name (SettingsBase.Name).


Type Description

An object representing the editor value.

Type Parameters

Name Description


The GetValue<T> method is in effect only for DevExpress editor extensions (i.e., EditorExtension class descendants).

Use the static GetValue<T> method to access the editor value within the controller code.


In order to pass the editor value to the controller, place the editor within the <form> tag (e.g., using the Html.BeginForm Method) and then submit the form to the server.

Note that the client-side validation of the user input can prevent the form from being submitted to the server unless the end-user input is valid.

See Also