All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

RibbonSelectBoxItemBuilder.AcceptCustomValue(Boolean) Method

Specifies whether the item accepts custom values.

Namespace: DevExpress.AspNetCore.Office

Assembly: DevExpress.AspNetCore.Common.v21.1.dll

Declaration

public RibbonSelectBoxItemBuilder AcceptCustomValue(
    bool value
)

Parameters

Name Type Description
value Boolean

true to accept custom values; otherwise, false.

Returns

Type Description
RibbonSelectBoxItemBuilder

The select box item builder.

Remarks

Set the acceptCustomValue property to true to allow a user to add new values to the select box. Note that in this case, you should implement the OnCustomItemCreating(String) handler to create a new data source entry.

See Also