Monday, October 29, 2012

Re: ListDataProvider.addDataDisplay() and setRowData

ListDataProvider wraps a list collection. It allows you to modify the wrapped collection and to automatically propagate those changes to the UI.

If you do not use the ListDataProvider (and just call setRowData()) directly, then you will need to call setRowData() whenever you make changes to your list.

So basically, if you intend on modifying the list (adding/deleting) after it is rendered, use the ListDataProvider.
If you are just setting the list data to show it, then just use setRowData()

--
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/-/R5kHsRt4vQgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment