Hi Isomorphic,
does a feature similar to ListGrid.setEditorCustomizer() for the normal display of ListGrid (not edit) exist?
Imagine a table that stores the wanted default value for a column if a new row of some object is created:
If I new person is created I use this data serverside to prefill the named DB fields with these IDs.
Now if I edit these, I can use a SelectItem with Datasource "language" for "language_id" and another SelectItem with Datasource "country" for "country_id" via setEditorCustomizer() and in edit mode I see the language/country name instead of ID. This is working fine.
In the ListGrid display, I do see IDs, though (as expected).
Is there a way to customize ListGridField.setOptionDataSource() on a per-row basis like I can customize editors? Either in ListGrid or ListGridField.
In a sample, I'd like for example to resolve here the Silder Editor-row value to a "employee"-DataSource lookup.
Thank you & Best regards
Blama
does a feature similar to ListGrid.setEditorCustomizer() for the normal display of ListGrid (not edit) exist?
Imagine a table that stores the wanted default value for a column if a new row of some object is created:
objectname | column | defaultvalue |
person | language_id | 1 |
person | country_id | 2 |
person | name | <null> |
Now if I edit these, I can use a SelectItem with Datasource "language" for "language_id" and another SelectItem with Datasource "country" for "country_id" via setEditorCustomizer() and in edit mode I see the language/country name instead of ID. This is working fine.
In the ListGrid display, I do see IDs, though (as expected).
Is there a way to customize ListGridField.setOptionDataSource() on a per-row basis like I can customize editors? Either in ListGrid or ListGridField.
In a sample, I'd like for example to resolve here the Silder Editor-row value to a "employee"-DataSource lookup.
Thank you & Best regards
Blama
Comment