Hum, I can't see redrawRow on DataGrid. I'm on 2.4 - perhaps it's in a
different release? 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));
}

Matthew

On 16 August 2012 17:42, Thomas Broyer <[email protected]> wrote:

>
>
> On Thursday, August 16, 2012 5:22:51 PM UTC+2, ssamara wrote:
>>
>> Not sure if you can re-render cells in isolation, but you should be able
>> to get it to redraw individual rows rather than the whole table. Try
>> replacing the updated item with itself in the DataProvider (e.g. if using a
>> ListDataProvider by calling set(index, item) on the underlying List, or if
>> using an AsyncDataProvider by calling updateRowData on the dataprovider
>> passing in a singleton list containing just the updated item).
>> Alternatively you can try calling setRowData() on the DataGrid itself.
>>
>
> …or use redrawRow()
>
> --
> 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/-/PY4q3fgoPNsJ.
>
> 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.
>



-- 
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle
University
mailto: [email protected]
gchat: [email protected]
msn: [email protected]
irc.freenode.net: drdozer
skype: matthew.pocock
tel: (0191) 2566550
mob: +447535664143

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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.

Reply via email to