LookupEdit

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

Example

LookupEdit (Extended Properties)

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

Example
Readonly? Required? Disabled? ContactAccount AutoCompleteDropdownRadio Buttons

LookupEdit 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.
DefaultTablestring?
Optionally specify which table should be set as the default table to search when the lookup is
linked to a customer or polymorphic column type.
DefaultViewIdGuid?
Specify which view should be used for searching, otherwise the Lookup view will be used.
Descriptionstring?
Description to be displayed in the tooltip.
Disabledbool?
Should the editor be disabled.
DisplayLabelWhenAvailablebool
True
Specifies whether to display a lable if available.
DisplayNullChoicebool
True
Only applicable when the== RadioButtons.
Displays a radio button that represents a NULL value.
DisplayTooltipWhenAvailablebool
True
Specifies whether to display a tooltip if available.
DisplayValidationErrorMessagebool
True
Should a validation error message be displayed when the component fails validation?
EditorTypeLookupEditType
AutoComplete
Type of editor to render for selecting values.
IsVisiblebool
True
Is the editor visible.
Labelstring?
Text to be displayed as a label for the editor.
MaxRecordsReturnedint
20
That maximum number of records to return when querying Dataverse. This also limits the records displayed when the
is equal toor .
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.
ValueLookupEditValue?
Value of type
ViewIdsDictionary<string, List<Guid>>?
Optionally constrain which views can be displayed in the 'Advanced Search' dialog.

Methods

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