Looks like the viewData is caching the result so redraw end up drawing the same state. You need to call checkboxCell.clearViewData(proxy) if the user cancel the update or alternatively you can extends CheckboxCell to not use viewData. Not sure wich one is worst :).
On Monday, April 20, 2015 at 4:45:01 PM UTC+2, andymel wrote:
-- My example here: https://github.com/ibaca/gwt-editable-tables/blob/master/src/main/java/editabletables/celltable/EditableCellTable.java
But the showcase example is more aggressive and always redraw the table: https://github.com/epuidokas/gwt-2.4/blob/master/user/javadoc/com/google/gwt/examples/cellview/CellTableFieldUpdaterExampleComplex.java
On Monday, April 20, 2015 at 4:45:01 PM UTC+2, andymel wrote:
Let me simplify my question.
How can I update the rows that have changed? When I delete a complete entry/rowworks perfectly fine. But if the entries are not changed the checkbox is not changed back by that line of code. When I reload the page (pressing F5) all data is right again.
table.setVisibleRangeAndClearData (table.getVisibleRange(), true);Any advice?
- I have some rows/entries with a checkbox/boolean
- I click it
- A dialog opens asking me "really?"
- I say "no"
- The checkbox should be unchecked again
Best regards!
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/d/optout.
No comments:
Post a Comment