Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid - having different dropdown in a column for different rows

    Hi,

    In a screen with ListGrid we have a requirement to populate dropdown with different value for each row (based on the business logic).

    In our implementation, we are returning it as a Map - for each row (which is a list). The data structure is: List for every row with the list having a map - for every column. The value in the map for this particular column is again a map.

    When we are displaying on the screen - since the setValueMap is used, all the columns get the same map (as the setValueMap method is at the ListGrid level)..

    Because of some reasons we are trying to avoid usage of OtherDataSource option. We also looked at the Dependent Selects example but cannot figure how the getEditorValueMap method be implemented in our case - as the data is not available locally, it is fetched.

    Please let us know if there is a way to set the dropdown with different value maps for each row without using the OtherDataSource option.

    Thanks

    #2
    optionDataSource is the right approach here if the data needs to be fetched when editing begins and/or the drop down list is opened. If you think there's something that makes it impossible to use this API, please explain.

    Comment

    Working...
    X