Results 1 to 2 of 2

Thread: GroupingView style

  1. #1
    Ext Premium Member
    Join Date
    Sep 2009
    Posts
    77
    Vote Rating
    0
      0  

    Default GroupingView style

    Starting from this example: http://www.sencha.com/examples/explo...#checkgrouping I would like to change some style attributes like vertical-align for the cells under the Company column, for instance.

    How can I do this? I would like to do this in code because I have some other grids there for other features and setting stuff for the x-grid3-row,... in the .css file is going to change the look for the others, too.

    Thanks,

    Dan

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    I have some other grids there for other features and setting stuff for the x-grid3-row,... in the .css file is going to change the look for the others, too.
    Not directly, you can specify this css selector so it only targets the one grid. Give the grid an id for example and use this id in your css selectors.

    You can probably also do it with a custom gridcellrenderer like this:
    Code:
     GridCellRenderer<Stock> change = new GridCellRenderer<Stock>() {
          public String render(Stock model, String property, ColumnData config, int rowIndex, int colIndex,
              ListStore<Stock> store, Grid<Stock> grid) {
            config.style +="vertical-align: middle;";
            double val = (Double) model.get(property);
            return number.format(val);
          }
        };

Similar Threads

  1. isGroupExpanded on GroupingView
    By markmacumber in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 16 Aug 2009, 7:58 PM
  2. [2.2] GroupingView
    By emredagli in forum Ext 2.x: Bugs
    Replies: 1
    Last Post: 15 Aug 2008, 6:46 AM
  3. Need help on GroupingView
    By Aravindvks in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 16 Jul 2008, 3:55 AM
  4. Help with getRowClass in GroupingView
    By graphicsxp in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 23 Dec 2007, 9:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •