Data Binding Drop-Down Controls Using Lookups
- Last UpdatedJun 25, 2024
- 1 minute read
You can populate the options of a drop-down control, that is options binding, using a lookup through a data grid control set as data source on the same form.
You can use any type of lookup (Database, Repository List or Web API for data binding options of Check Box, List, Drop-Down, or Radio Button control.
-
Create a lookup.
-
Create a Grid Configuration using the lookup.
-
Create a form, and add a Data Grid control.
-
Modify properties of the Data Grid control as follows:
-
In the Basic tab, set the Configuration Name property to the grid configuration created in Step 2.
-
In the Advanced tab, set the Behavior property to Data Source.
-
-
Add a Drop-Down control to the form.
-
Modify properties of the Drop-Down control as follows:
-
In the Advanced tab, set the Text Parameter and Value Parameter properties to the column names of the grid as required.
-
In the Scripts tab, set the script for the Options property as follows:
return control.findById("G1").source;
-