I have this peculiar problem with the grids.The application fires and event and new grid object is created every time .
I clear the SimplePanel and then add the new grid object to the SimplePanel.
Now the problem is that the first time the event is fired the grid object is displayed along with columns and rows.
The next time when the event is fired the new grid object is added to this simple panel but only the columns are shown but the rows are not displayed even though there is data in the grid.
Below is the code sample
Code:
if(sdfe instanceof ProcessEventsReceivedEvent){
ProcessEventsReceivedEvent pere = (ProcessEventsReceivedEvent)sdfe;
ApplicationMasterDetails amd = pere.getAmd();
ProcessEventGrid peg=DataAndComponentFactoryImpl.getInstance().getProcessEventGrid(amd);
clear();
if(currentAmd!=null){
if(currentAmd.getId()==amd.getId()){
add(peg);
}
}
else{
add(peg);
}
}
Thanks,
Cherian