Thursday, April 28, 2011

Using DataProviders vs manual SetRowData

If you update several items in a ListDataProvider (say items with
indexes 3 and 42) all other items between (4 to 41) will be re-
rendered by the display if they are in the visible range. This means
creating all the HTML and all the DOM elements for those items
although they have not changed.

If instead you update those items manually using setRowData twice for
items 3 and 42 only those two items would be touched and re-rendered.

Looking for performance, setRowData seems the way to go. I would like
to know any other considerations/opinions regarding this.

Thanks

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