Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonSelectBoxItemBuilder.AcceptCustomValue(Boolean) Method

Specifies whether the item accepts custom values.

Namespace: DevExpress.AspNetCore.Office

Assembly: DevExpress.AspNetCore.Common.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Common

#Declaration

C#
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