ChoiceEdit

Here is an example that demonstrates the use of a ChoiceEdit component.

Example
Net 302% 10, Net 30Net 45Net 60

ChoiceEdit (Extended Properties)

This demonstrates the most common the properties that are availabe to set on the ChoiceEdit.

Example
Readonly? Required? Disabled? DefaultDisplay NameDisplay Name DescendingValueValue Descending DisableRemove DropdownRadio Buttons
Net 302% 10, Net 30Net 45Net 60

ChoiceEdit Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
Child content of the component
ColumnNamestring
Column logical name to bind the editor to from the table record.
Descriptionstring?
Description to be displayed in the tooltip.
Disabledbool?
Should the editor be disabled.
DisplayLabelWhenAvailablebool
True
Specifies whether to display a lable if available.
DisplayTooltipWhenAvailablebool
True
Specifies whether to display a tooltip if available.
DisplayValidationErrorMessagebool
True
Should a validation error message be displayed when the component fails validation?
EditorTypeChoiceEditType
Dropdown
Type of editor to render
InvalidChoiceValuesIEnumerable<int>?
Optionally specify what values are invalid.
InvalidValueBehaviorChoiceInvalidValueBehavior
Remove
Determines the behavior of invalid values. Only applicable when either theorparameter is supplied.
IsVisiblebool
True
Is the editor visible.
Labelstring?
Text to be displayed as a label for the editor.
RadioButtonOrientationOrientation
Vertical
Orientation of the radio buttons. Only valid when theis set to .
ReadOnlybool?
Should the editor be read-only.
Requiredbool?
Should the value be required.
SortChoiceValueSort
Default
Determines how the values are sorted.
ValidChoiceValuesIEnumerable<int>?
Optionally specify what values are valid.
Valueint?
Value of the column.

Methods

Name
Parameters
Type
Description
GetValidationErrorsList<string>
Returns a collection of the current validation errors.