Tuesday, February 19, 2013

DataGrid - selection jumps onto the first entry on deletion?

Hi,

I have a DataGrid, and on deleting an entry with dataProvider.remove(singleSelectionModel.getSelectedObject()); the selection jumps right onto the first field in the Grid.
However, executing the deletion again (by a Button), the visibly selected first element is NOT deleted.

Thus, somehow only the visual selection seems to change, but not in the backing.

Is this a bug? How can I prevent the initial selection after a delete?
I tried singleSelectionModel.clear() but that did not have any impact.

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment