Lookup Main Settings
- 5 minutes to read
Lookup editors have much in common because they all derive from the LookUpEditBase class.
Common Settings
The following table lists the most popular settings:
Property | Description |
---|---|
Gets or sets the lookup’s value. | |
Gets or sets the source of data displayed in the dropdown window. | |
Specifies the name of a data source field, whose values are visible to users. A value from this field is displayed in the lookup’s text box when a user selects a record. | |
Specifies the name of a data source field with unique/key values. A value from this data field is assigned to the lookup’s
Important When a lookup editor is used to edit cell values in the Data Grid, the type of the | |
Specifies the name of a key field (or multiple key fields). Use this property in Advanced Lookup Binding Mode. | |
Specifies whether users can type in the lookup’s text box. Set the
| |
Specifies the “best-fit” mode for lookup columns in the dropdown window. This feature proportionally resizes all columns to fit cell contents. | |
Specifies a string that is displayed in the text box when the lookup’s value is null (for example, | |
If enabled, users can press | |
Use this property to access a collection of lookup columns. | |
Creates lookup columns for all fields in the data source. | |
Lookups can display columns that are not bound to data source fields. Handle the
| |
Gets or sets the width of the dropdown window (in pixels). Use the PopupWidthMode property to specify whether the dropdown’s default width matches the width of the lookup or dropdown content. | |
Specifies the dropdown’s height (in rows). Use the DropDownItemHeight property to specify the height of a row (in pixels). | |
Gets or sets the lookup editor whose value determines the filter criteria applied to the popup data source of the current lookup editor. | |
Gets or sets the name(s) of the foreign key field(s) by which the popup data source of the lookup editor is filtered. The field must be editable and accept new values (read-only fields are not supported). | |
Enable this option to display the dropdown immediately after a user has typed a character in the text box. |
Lookup Settings
Property | Description |
---|---|
Gets or sets whether to enable the multiple item selection and specifies how the EditValue property stores selected items. |
Grid Lookup Settings
Property | Description |
---|---|
Specifies the type of View (for example, Grid View, Bands View, Tile View) that displays data in the dropdown. | |
Specifies whether the lookup uses the | |
Specifies whether the lookup accepts a value entered by a user in the text box that is not present in the data source. Read the following topic for detailed information: ComboBox Mode. |
Search Lookup Settings
Property | Description |
---|---|
Specifies the type of View that displays data in the dropdown. | |
Specifies whether the lookup uses the | |
Specifies whether to start the search automatically after a short delay, or when the Find button is clicked or ENTER is pressed. | |
Specifies whether to display the ‘Add New’ button in the dropdown. | |
Specifies whether to display the ‘Clear’ button in the dropdown. |
TreeList Lookup Settings
Property | Description |
---|---|
Gets or sets the TreeList control. | |
Gets or sets whether to expand all nodes when the TreeList is being loaded. | |
Enables the Auto-Complete feature. | |
Gets or sets how records in the dropdown window are filtered when typing text within the edit box. |