Add progress bar while dataprovider is loading

83 views
Skip to first unread message

Issam

unread,
Jul 7, 2011, 10:12:23 AM7/7/11
to Google Web Toolkit
I'm working with dataProviders, pagers ... and I would like to display
a progress or any gif image while dataprovider is loading data when
the user click on the pager to see next page.

Any suggestion are welcome.

thanks

gadev

unread,
Jul 7, 2011, 10:58:14 AM7/7/11
to google-we...@googlegroups.com
What about setLoadingIndicator(widget);

-George

Issam

unread,
Jul 7, 2011, 11:11:20 AM7/7/11
to Google Web Toolkit
Could you please give me more details ?


On 7 juil, 16:58, gadev <George.Agiasog...@newsint.co.uk> wrote:
> What about *setLoadingIndicator(widget);*
>
> -George

George Agiasoglou

unread,
Jul 7, 2011, 12:32:06 PM7/7/11
to google-we...@googlegroups.com
There is not really a lot to it, actually the celltable does come with a loading indicator already, you should be able to see it whenever the range changes.

Make sure on the range change implementation of your AsyncDataProvider to call these two methods 
updateRowCount();

updateRowData();


If however you feel the need to create a custom loading indicator just create your celltable and use the setLoadingIndicator(widget) method.


CellTable<MyObject> cellTable = new CellTable<MyObject>();

cellTable.setLoadingIndicator(widget)


-George

Reply all
Reply to author
Forward
0 new messages