EditorExtension.GetValue<T>(String, ValidationSettings, MaskSettings) Method
Returns a specific editor’s value, which is validated based on the passed validation and mask settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public static T GetValue<T>(
string name,
ValidationSettings validationSettings,
MaskSettings maskSettings
)
#Parameters
Name | Type | Description |
---|---|---|
name | String | A string specifying the editor name (Settings |
validation |
Validation |
A Validation |
mask |
Mask |
A Mask |
#Type Parameters
Name |
---|
T |
#Returns
Type | Description |
---|---|
T | An object representing the editor value. |
#Remarks
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.
Note
In order to pass the editor value to the controller, place the editor within the <form> tag (e.
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.