Adding a dropdown column in an editable data grid with constraint.

0
Hi All, I am using an editable data grid to show the records from an entity and that entity is having association with Administratoin.Account entity. In Grid, I am having a column to select the account for each record. The issue is, the column shows a dropdown with all users but, I want to show the users related to particular user role. How can I achieve this in the data grid. Thanks in advance.
asked
1 answers
0

Unfortunately the reference selector drop downs in data grids do not support a lot of customization. The simple solution is to replace your data grid with a list view and just add a normal reference selector. If you really want to get creative you might consider a whole new entity that retrieves all the users with the correct user role and populates itself with copies. It all depends on how willing you are to write complex after-commit flows and mar your domain model.

answered