Hi, I have a Grid that is populated with initial data, ex. :

  Grid g = new Grid(2, 3);

  g.setText(0, 0, "a1");
  g.setText(0, 1, "a1");
  g.setText(0, 2, "a1");

  g.setText(1, 0, "b1");
  g.setText(1, 1, "b1");
  g.setText(1, 2, "b1");

  dock.add(g, DockPanel.CENTER);
  rootPanel.add(dock);

On the initial page load, I see the grid fine.

Then it gets repopulated with data comming from a server
in an AsyncCallback, and that the new data doesn't get displayed,
I repopulated with :

            g.resizeRows(res.size());

            for(int i = 0; i < res.size(); i++) {
              g.setText(i, 0, res.get(i).nom);
              g.setText(i, 1, res.get(i).prenom);
              g.setText(i, 2, res.get(i).pseudo);
            }


Do I need to explicitely tell some widget that it needs to redraw ?

Thanks

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