I looked into this a little while ago and as far as I could tell using
the ListDataProvider prevents the loading indicator from ever being
shown (long explanation which I never got round to writing up, but if
there's interest I will do). The ListDataProvider is intended to be
used when all of the data is resident in the client, if it isn't then
you should use AsyncDataProvider.

On Tue, May 15, 2012 at 2:59 PM, Jens <[email protected]> wrote:
>> table.setVisibleRangeAndClear() will ensure that the loading indicator
>> appears until setRowCount(0, true) or setRowData() are called.
>
>
> I am using a CellList and it seems like that
> AbstractHasData.setVisibleRangeAndClear() does not show the loading
> indicator if the CellList is empty. Its basically like:
>
> 1.) CellList created => shows loading indicator
> 2.) Server returns 0 records => ListDataProvider is empty => shows empty
> indicator
> 3.) Calling list.setVisibleRangeAndClear(list.getVisibleRange(), true) to
> show loading indicator because I want to reload the list data => no loading
> indicator, still shows empty indicator while data is loading.
> 4.) CellList/DataProvider now contains some data and when redoing 3.) the
> loading indicator appears as expected.
>
> Anyone knows if this is intentional behavior? To me it seems like a bug. Is
> there any other way to show the loading indicator even if the list is empty?
>
> -- J.
>
> --
> 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/-/UukgWkmauhYJ.
>
> 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.

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