0

Refresh a Grid

asked 2008-12-09 21:05:28 +0800

YamilBracho gravatar image YamilBracho
1722 2

Hi.
I am filling a grid programatically in a composer class. My code is

Grid resultadoGrid = (Grid) this.resultadoWin.getFellow("grid2");//Path.getComponent("/resultadoWin/resultadoGrid") ;
Rows rows = resultadoGrid.getRows();

for (FechaExclusionBean fe : resultado.getFechaExclusionList()) {

Row row = new Row();
rows.appendChild(row);

row.getChildren().add(new Label(String.valueOf( fe.getFechaInicial()) ));
row.getChildren().add(new Label( String.valueOf( fe.getFechaFinal())));

row.getChildren().add( new Label( String.valueOf( fe.getDias() )) );
row.getChildren().add(new Label( Utilidades.format(fe.getTasa() )) );

row.getChildren().add(new Label(Utilidades.format(fe.getMonto())) );
row.getChildren().add(new Label(Utilidades.format(fe.getCalculo())) );
}

resultadoGrid.invalidate();

But when I show the window the header and data columns does not fit...

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-12-09 21:28:02 +0800

YamilBracho gravatar image YamilBracho
1722 2

I did giving the grid a fixedLayout and a width...

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-12-09 21:05:28 +0800

Seen: 220 times

Last updated: Dec 09 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More