The MultiSelectChoiceEdit component renders a Dataverse multi-select choice column, allowing users to select multiple values from a predefined set of options.
<MultiSelectChoiceEdit columnName="ppp_favoritecolors" /><MultiSelectChoiceEdit ColumnName="ppp_favoritecolors" />Set EditorType to choose the rendering style. The default renders as a checkbox group. Use CheckboxOrientation to control vertical or horizontal layout, and WrapCheckboxes to control wrapping behavior.
<MultiSelectChoiceEdit
columnName="ppp_favoritecolors"
checkboxOrientation={ChoiceOrientation.Horizontal}
wrapCheckboxes={true}
/><MultiSelectChoiceEdit ColumnName="ppp_favoritecolors"
CheckboxOrientation="ComponentOrientation.Horizontal"
WrapCheckboxes="true" />Set SortOrder to control how the options are ordered. Options include Default, DisplayName, DisplayNameDescending, Value, and ValueDescending.
<MultiSelectChoiceEdit
columnName="ppp_favoritecolors"
sort={ChoiceValueSort.DisplayName}
/><MultiSelectChoiceEdit ColumnName="ppp_favoritecolors"
SortOrder="ChoiceSortOrder.DisplayName" />A basic MultiSelectChoiceEdit bound to a multi-select choice column.
Use the controls below to explore the available properties.
Name | Type | Default | Description |
|---|---|---|---|
CheckboxOrientation | ComponentOrientation | Vertical | Orientation of the checkboxes. |
ChildContent | RenderFragment? | Child content of the component | |
ColumnName* | string | Column logical name to bind the editor to from the table record. | |
Description | string? | Description to be displayed in the tooltip. | |
Disabled | bool? | Should the editor be disabled. | |
DisplayLabelWhenAvailable | bool | True | Specifies whether to display a lable if available. |
DisplayTooltipWhenAvailable | bool | True | Specifies whether to display a tooltip if available. |
DisplayValidationErrorMessage | bool | True | Should a validation error message be displayed when the component fails validation? |
InvalidChoiceValues | IEnumerable<int>? | Optionally specify what values are invalid. | |
InvalidValueBehavior | ChoiceInvalidValueBehavior | Remove | Determines the behavior of invalid values. Only applicable when either the BaseChoiceEditCommon.ValidChoiceValues or BaseChoiceEditCommon.InvalidChoiceValues parameter is supplied. |
IsVisible | bool | True | Is the editor visible. |
Label | string? | Text to be displayed as a label for the editor. | |
ReadOnly | bool? | Should the editor be read-only. | |
Required | bool? | Should the value be required. | |
Sort | ChoiceValueSort | Default | Determines how the values are sorted. |
ValidChoiceValues | IEnumerable<int>? | Optionally specify what values are valid. | |
Value | List<int> | Value of the column. | |
WrapCheckboxes | bool | True | When |
CheckboxOrientationChildContentColumnName*DescriptionDisabledDisplayLabelWhenAvailableDisplayTooltipWhenAvailableDisplayValidationErrorMessageInvalidChoiceValuesInvalidValueBehaviorBaseChoiceEditCommon.ValidChoiceValues or BaseChoiceEditCommon.InvalidChoiceValues parameter is supplied.IsVisibleLabelReadOnlyRequiredSortValidChoiceValuesValueWrapCheckboxesName | Type | Description |
|---|---|---|
ValueChanged | EventCallback<ColumnValueBase> | Gets or sets a callback that updates the bound value. |
ValueChangedName | Parameters | Type | Description |
|---|---|---|---|
GetValidationErrors | List<string> | Returns a collection of the current validation errors. |
GetValidationErrors