Back to Devexpress

DateBoxBuilder.ApplyValueMode(EditorApplyValueMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-dateboxbuilder-dot-applyvaluemode-x28-devextreme-dot-aspnet-dot-mvc-dot-editorapplyvaluemode-x29.md

latest1.3 KB
Original Source

DateBoxBuilder.ApplyValueMode(EditorApplyValueMode) Method

Mirrors the client-side applyValueMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public DateBoxBuilder ApplyValueMode(
    EditorApplyValueMode value
)

Parameters

NameTypeDescription
valueEditorApplyValueMode

The option value.

|

Returns

TypeDescription
DateBoxBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().DateBox()
    .ApplyValueMode(EditorApplyValueMode.Instantly)
)

See Also

DateBoxBuilder Class

DateBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace