setRowData(int, List) replaces the range of data.  So, if the list gets
shorted, it doesn't touch the items that appear after the end of the list.

You have to update the row count as well:
table.setRowData(0, NewMessages);
table.setRowCount(NewMessages.size(), true);

Or, you can use the new version of setRowData that does not take a start
index (since GWT 2.1.1):
table.setRowData(NewMessages);

Thanks,
John LaBanca
[email protected]


On Wed, Jan 5, 2011 at 2:11 PM, Noor <[email protected]> wrote:

>
> When using the same technique, i am adding the cell table is being
> updated but when removing, it not updating
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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