While working with IDs in user interfaces, it’s often needed to synchronize them with string names; e.g. a country id for updating the database and a country name for displaying it to the user.
UIKernel provides editors that support automatic synchronization. They are SuggestBox
and Select
.
You need to use an onLabelChange={handler}
prop to automatically synchronize IDs and string names.
this.updateField
updates the field value without validation
onLabelChange={handler}
speeds up the initial rendering of the grid, since no additional XHR calls are needed to resolve a country id into a country name.