Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2007
    Posts
    3
    Vote Rating
    0
    anti is on a distinguished road

      0  

    Default Problem with two different Grid-Appearances at same 'page'

    Problem with two different Grid-Appearances at same 'page'


    Hi,

    i defined 2 different grid appearances for two grids, that are displayed at the same time. But the last always overwrites the first created. Can someone see the mistake?

    It works fine with ButtonCellAppearance and others, but the Grid seems to be different?

    Code:
    public class MyFirstGridAppearance
      extends GridBaseAppearance
    {
      public interface MyFirstGridStyle
        extends GridStyle
      {
      }
    
      public interface MyFirstGridResources
        extends GridResources
      {
        @Source({"com/sencha/gxt/theme/base/client/grid/Grid.css", "MyFirstGrid.css"})
        @Override
        MyFirstGridStyle css();
      }
    
      public MyFirstGridAppearance()
      {
        this(GWT.<MyFirstGridResources>create(MyFirstGridResources.class));
      }
    
      public MyFirstGridAppearance(MyFirstGridResources resources)
      {
        super(resources);
      }
    }
    
    public class MySecondGridAppearance
      extends GridBaseAppearance
    {
      public interface MySecondGridStyle
        extends GridStyle
      {
      }
    
      public interface MySecondGridResources
        extends GridResources
      {
        @Source({"com/sencha/gxt/theme/base/client/grid/Grid.css", "MySecondGrid.css"})
        @Override
        MySecondGridStyle css();
      }
    
      public MySecondGridAppearance()
      {
        this(GWT.<MySecondGridResources>create(MySecondGridResources.class));
      }
    
      public MySecondGridAppearance(MySecondGridResources resources)
      {
        super(resources);
      }
    }
    thx!

  2. #2
    Sencha User
    Join Date
    Aug 2007
    Posts
    3
    Vote Rating
    0
    anti is on a distinguished road

      0  

    Default


    Hi,

    ok, i found a solution for my Problem, the GridAppearance in the constructor of TreeGrid seems not to be used by the TreeGrid/TreeGridView, instead the default one is taken! (new TreeGridView always calls default constructor of GridView)