Re: How to prevent the empty Grid display?

2009-04-07 Thread makoki

What about setting it not visible after creation and only show it
after the loading ended?
grd.setVisible(false);
...
// In the callback method return
  onSuccess(){
   grd.setVisible(true);
}

On 7 abr, 13:38, Suren nsurendi...@gmail.com wrote:
 Hi All,

 I am new to GWT. I have a Grid declared like below

 Grid grd = new Grid(100,100);

 And, I am populating each cell by fetching data from DB. That takes
 some 20 seconds or so.

 But before the data populated, I can see the empty grid with 100x100
 empty cells, shown in the browser. how can I prevent this?

 I just want to show the Grid only when all the cells are populated
 with Values.

 Any help would be appreciated

 Thanks
 Suren
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to prevent the empty Grid display?

2009-04-07 Thread Suren

Hi,

Thanks alot. Yes that works.
Its simple but, powerful. I ashamed that, I didnt try that ;-)

Thanks again

Suren

On Apr 7, 7:41 pm, makoki iagoto...@gmail.com wrote:
 What about setting it not visible after creation and only show it
 after the loading ended?
 grd.setVisible(false);
 ...
 // In the callback method return
   onSuccess(){
    grd.setVisible(true);

 }

 On 7 abr, 13:38, Suren nsurendi...@gmail.com wrote:



  Hi All,

  I am new to GWT. I have a Grid declared like below

  Grid grd = new Grid(100,100);

  And, I am populating each cell by fetching data from DB. That takes
  some 20 seconds or so.

  But before the data populated, I can see the empty grid with 100x100
  empty cells, shown in the browser. how can I prevent this?

  I just want to show the Grid only when all the cells are populated
  with Values.

  Any help would be appreciated

  Thanks
  Suren- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---