Wednesday, November 28, 2012

CellTable - how to avoid unnecessary onRangeChange events?

Hi,

I found that my CellTable sends unnecessary onRangeChange events in a specific situation:

- The data source changes, e. g. the user selects another chat room.
- The new row count is less than the old one.

Then, when calling the data provider's updateRowCount method the GWT code recognizes that the current range exceeds the row count and corrects the range somhow, triggering an onRangeChange event.
Independend of this, the application also as an idea which records to show and also sets the new range.

In the end, the page is loaded twice. Can we avoid this?

Magnus

--
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/-/ZlmcxRecqhEJ.
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