Thursday, January 23, 2014

Re: SelectionCell with unique list of options for every row

I have been trying to do the same thing with no success. Does anyone have any pointers on this? I created a custom DynamicSelectionCell that lets me populate the list from the datagrid by overriding render. This works OK and I get selections with the unique values for each row OK.

However when I use the setFieldUpdater to override update the value is based on the very last set of options passed to the DynamicSelectionCell from the last row. The issue I seem to have is that the DynamicSelectionCell is shared for the entire column. Is there a way to create a unique cell per row for a column?


selectionColumn.setFieldUpdater(new FieldUpdater<VmDTO, String>() {


      @Override
      public void update(int index, VmDTO vmDTO, String value) {
            value here is always equals to an option set from the last row.
      }
});


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment