Tuesday, June 5, 2012

Re: How to get default loading indicator for DataGrid

Hi all,

The below code worked

private void setLoadingIndicator(DataGrid grid)
{
VerticalPanel vp = new VerticalPanel();
AbsolutePanel ap = new AbsolutePanel();
Image image = new Image("loadingboxes.gif");
HorizontalPanel hp = new HorizontalPanel();
AbsolutePanel ap1 = new AbsolutePanel();

ap1.setWidth("30px");
hp.add(ap1);
hp.add(image);

ap.setHeight("50px");
vp.add(ap);
vp.add(new Label("Searching Please wait..."));
vp.add(hp);
vp.setSpacing(10);
grid.setLoadingIndicator(vp);
}

On Jun 5, 2:59 am, dayanandabv <dayananda.veera...@hcl.com> wrote:
> Hi all,
>
> How to get default loading indicator for DataGrid?
> Is Default blinking 3 boxes while loading data is animated image?
>
> I tried to use  Widget defaultWidget =  getLoadingIndicator();
> but it gives me null value.
>
> what i want is i need to show static text before the 3 boxes.
>
> i tried overriding setLoadingIndicator  but no help, any help
> regarding the same
> public void setLoadingIndicator()
>         {
> //giving null value here
>             Widget defaultWidget =  getLoadingIndicator();
>             HorizontalPanel hp = new HorizontalPanel();
>
>             hp.add(new Label("Please wait loading"));
>             hp.add(defaultWidget);
>             super.setLoadingIndicator(hp);
>         }
>
> Thanks in advance
> Daya

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate