Monday, April 20, 2015

Re: update checkbox after asking the server

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 :).

My example here:
But the showcase example is more aggressive and always redraw the table:

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/row 
table.setVisibleRangeAndClearData(table.getVisibleRange(), true);
works 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.
  1. I have some rows/entries with a checkbox/boolean
  2. I click it
  3. A dialog opens asking me "really?"
  4. I say "no"
  5. The checkbox should be unchecked again
Any advice?
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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment