On Wednesday, August 22, 2012 1:45:47 AM UTC+2, Matthew Pocock wrote:
>
> Hum, I can't see redrawRow on DataGrid. I'm on 2.4 - perhaps it's in a
> different release?
Ah, yes, it's new in 2.5.0-rc1)
> My data is exposed through AsyncDataProvider. I'm currently using this
> monstrosity to update rows, but I'm not entirely confident that it's right
> or particularly sane.
>
> int i = table.getVisibleItems().indexOf(instance);
> if(i >= 0) {
> table.setRowData(table.getPageStart() + i, Arrays.asList(instance));
> }
>
I've been using a similar trick for a CellTree, and I must say I'm not
comfortable with it either. But it works, with few reasons to break in a
future release (unless some kind of optimization is added to avoid
redrawing a row if the object is the same, but it would break a lot of
people's code so it has little to no chance to happen in practice)
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/KHXbj7syrHgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.