1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
    cherian is on a distinguished road

      0  

    Default Answered: GXT Grids not working

    Answered: GXT Grids not working


    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

  2. The Problem is probably that you are not sizing your grid. SimplePanel is a GWT container that does not size its children. Have you tried to manually set a size to your grid?

    Have you verified that the rows exist for example with the help of chrome debugger or firebug?

  3. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Answers
    60
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    The Problem is probably that you are not sizing your grid. SimplePanel is a GWT container that does not size its children. Have you tried to manually set a size to your grid?

    Have you verified that the rows exist for example with the help of chrome debugger or firebug?

  4. #3
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
    cherian is on a distinguished road

      0  

    Default


    Than you Sven. Sizing was the issue

Thread Participants: 1

Tags for this Thread