Back to Devexpress

SelectBoxBuilder.AcceptCustomValue(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-selectboxbuilder-dot-acceptcustomvalue-x28-system-dot-boolean-x29.md

latest1.4 KB
Original Source

SelectBoxBuilder.AcceptCustomValue(Boolean) Method

Specifies whether the UI component allows a user to enter a custom value. Requires the onCustomItemCreating handler implementation. Mirrors the client-side acceptCustomValue option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public SelectBoxBuilder AcceptCustomValue(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The option value.

|

Returns

TypeDescription
SelectBoxBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().SelectBox()
    .AcceptCustomValue(true)
)

See Also

SelectBoxBuilder Class

SelectBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace