gxt grid row height problem

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

gxt grid row height problem

Postby vampie » Wed Nov 25, 2009 7:07 am

I have fixed row height by using BufferView class... But I cannot render ( see my values ) in grid cells... All cells are empty

What can cause it ?

Code: Select all
   BufferView view = new BufferView(); 
    view.setRowHeight(32); 
 
    grid.setView(view); 

















I have added gxt grid on absolutepanel..

when i try to render data, row height become problematic... what can cause the problem?

and how can i fix it ?


Thanks,
Code: Select all
   private class ImgCallClickHandler implements ClickHandler {

      public void onClick(ClickEvent event) {
         
         //Window.alert( "selammm" );

         
         //Object result;
         //List<DMCallLater> userList = (List<DMCallLater>) result;           
           
         
         List<DMCallLater> lstTemp= new ArrayList<DMCallLater>();
         
         lstTemp.add( new DMCallLater("test", "test1", "test2" ) );
         lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
         lstTemp.add( new DMCallLater("me", "me1", "me2" ) );

         //   lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
         //lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
         
         
         ListStore<DMCallLater> store = new ListStore<DMCallLater>();
              store.add(lstTemp);
              
         
         
           absolutePanel_2.remove(grdCallLater);
          
           configs_2.clear();
          
         clmncnfgTest = new ColumnConfig("ilk", "Test", 150);
         configs_2.add(clmncnfgTest);
         
         columnConfig_1 = new ColumnConfig("ikinci", "New Column111111111111", 150);
         configs_2.add(columnConfig_1);
         
         ColumnConfig columnConfig = new ColumnConfig("ucuncu", "New Column", 150);
         configs_2.add(columnConfig);

         
         
         
           ListStore<DMCallLater> employeeList = new ListStore<DMCallLater>();   
           employeeList.add( new TestData().getEmployees());
         
         
         
           com.extjs.gxt.ui.client.widget.grid.Grid<DMCallLater> grdCallLater =
              new com.extjs.gxt.ui.client.widget.grid.Grid<DMCallLater> (
                    employeeList, new ColumnModel(configs_2) );

          
          
           //grdCallLater.getView().
          
          
         grdCallLater.setSize("494px", "263px");
         grdCallLater.setBorders(true);
         
           //grdCallLater.setStripeRows(true);
           //grdCallLater.getView().setForceFit(true);
           

         absolutePanel_2.add(grdCallLater);
         absolutePanel_2.setWidgetPosition(grdCallLater, 0, 0);

      }
   }

   
   public class DMCallLater extends BaseModel { 

   
   
   public class TestData { 
       
      public  List<DMCallLater> getEmployees() 
      { 
        List<DMCallLater> test12 = new ArrayList<DMCallLater>(); 
       
        //DateTimeFormat f = DateTimeFormat.getFormat("yyyy-mm-dd");
       
        test12.add(new DMCallLater( "Hollie Voss", "General Administration", "Executive Director" )); 
        test12.add(new DMCallLater( "Emerson Milton", "Information Technology", "CTO" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
        test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" )); 
       
        return test12; 
      
      } 
   } 
Attachments
Screenshot-Wrapper HTML for Main .png
gxt row height problem
Screenshot-Wrapper HTML for Main .png (50.41 KiB) Viewed 1843 times
Last edited by vampie on Wed Nov 25, 2009 8:21 am, edited 1 time in total.
vampie
 
Posts: 89
Joined: Mon Nov 06, 2006 10:18 am

Re: gxt grid row height problem

Postby Eric Clayberg » Wed Nov 25, 2009 7:58 am

vampie wrote:I have added gxt grid on absolutepanel..
when i try to render data, row height become problematic... what can cause the problem?
and how can i fix it ?

No idea. That would be a very good question for the GXT Help forum.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: gxt grid row height problem

Postby vampie » Wed Nov 25, 2009 8:42 am

ok fixed... thx
vampie
 
Posts: 89
Joined: Mon Nov 06, 2006 10:18 am

Re: gxt grid row height problem

Postby Eric Clayberg » Wed Nov 25, 2009 9:47 am

OK. We are happy to help with GWT Designer related issues. Runtime behavior of various components (GWT, GXT or GWT-Ext) should be directed to the appropriate group responsible for those components.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest