valery.stroeder
16 Nov 2009, 2:32 AM
Hello,
using demo samples, I'm creating a little web application.
I have a borderLayout like this : http://www.extjs.com/examples-dev/explorer.html#borderlayout (http://www.extjs.com/forum/../examples-dev/explorer.html#borderlayout)
I have 2 rowEditorGrid like this : http://www.extjs.com/examples-dev/explorer.html#roweditorgrid (http://www.extjs.com/forum/../examples-dev/explorer.html#roweditorgrid)
In the EntryPoint's class I put my 2 rowGridEditors in the borderLayout's center region and then I set it unvisible
mainPanel.getCenter().add(foodPanel);
mainPanel.getCenter().add(mealPanel);
foodPanel.setVisible(false);
mealPanel.setVisible(false);
In the west's region I have some buttons to display one of another panel
btnfood.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(final ButtonEvent buttonEvent) {
CRC.mealPanel.setVisible(false);
CRC.foodPanel.setVisible(true);
}
});
...
So I'm abble to display a grid or another pressing different buttons. But If I add informations in my grid after the first grid's display. The new datas are never displayed.. Samething if I try to add other datas to the center's panel..
btnfood.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(final ButtonEvent buttonEvent) {
CRC.mealPanel.setVisible(false);
CRC.mainPanel.getCenterPanel().addText("Hello?????????????????????");
CRC.foodPanel.setVisible(true);
}
});
Hello text never appear, any idea ?
Thanks.
using demo samples, I'm creating a little web application.
I have a borderLayout like this : http://www.extjs.com/examples-dev/explorer.html#borderlayout (http://www.extjs.com/forum/../examples-dev/explorer.html#borderlayout)
I have 2 rowEditorGrid like this : http://www.extjs.com/examples-dev/explorer.html#roweditorgrid (http://www.extjs.com/forum/../examples-dev/explorer.html#roweditorgrid)
In the EntryPoint's class I put my 2 rowGridEditors in the borderLayout's center region and then I set it unvisible
mainPanel.getCenter().add(foodPanel);
mainPanel.getCenter().add(mealPanel);
foodPanel.setVisible(false);
mealPanel.setVisible(false);
In the west's region I have some buttons to display one of another panel
btnfood.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(final ButtonEvent buttonEvent) {
CRC.mealPanel.setVisible(false);
CRC.foodPanel.setVisible(true);
}
});
...
So I'm abble to display a grid or another pressing different buttons. But If I add informations in my grid after the first grid's display. The new datas are never displayed.. Samething if I try to add other datas to the center's panel..
btnfood.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(final ButtonEvent buttonEvent) {
CRC.mealPanel.setVisible(false);
CRC.mainPanel.getCenterPanel().addText("Hello?????????????????????");
CRC.foodPanel.setVisible(true);
}
});
Hello text never appear, any idea ?
Thanks.