Results 1 to 7 of 7

Thread: [CLOSED]Grid stripeRows

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default [CLOSED]Grid stripeRows

    This doesn't appear to be working for me.

    All tr's have the same class.

    Code:
    Ext.define('Altus.grid.GridPanel', {
        extend: 'Ext.grid.GridPanel',
        alias: ['widget.altus.gridpanel', 'widget.altus.grid'],
    
        columnLines: true,
    
        viewConfig: {
        	stripeRows: true	// This doesn't appear to work :/
        }
    });
    Am I doing something wrong?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    It's a config of GridPanel now.

  3. #3
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Hi Animal,

    Doesn't appear to be.

    In example above, setting stripeRows: true, or config { stripeRows: true } has no effect as far as I can see.

    Can't see it in Ext.grid.GridPanel either.

    Cheers,
    Westy

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Hmm.. In the examples that I am working on it works...

    Code:
        var firstGrid = new Ext.grid.GridPanel({
            viewConfig: {
                plugins: {
                    ptype: 'gridviewdd',
                    dragGroup: 'firstGridDDGroup',
                    dropGroup: 'secondGridDDGroup'
                },
                listeners: {
                    drop: function(node, data, dropRec, dropPosition) {
                        var dropOn = dropRec ? ' ' + dropPosition + ' ' + dropRec.get('name') : ' on empty view';
                        Ext.example.msg("Drag from right to left", 'Dropped ' + data.records[0].get('name') + dropOn);
                    }
                }
            },
            store            : firstGridStore,
            headers          : headers,
            enableDragDrop   : true,
            stripeRows       : true,
            autoExpandColumn : 'name',
            title            : 'First Grid',
            margins          : '0 2 0 0'
        });
    resulting in


  5. #5
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Hmm, well I can't get it working...

    When I looked at your post last night the linked image had the stripes, now the embedded image doesn't...

  6. #6
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    stripeRows is on the viewConfig, should be working as of PR5.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  7. #7
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Yeah, works now, thanks.

    The default $grid-row-cell-alt-background is pretty much indistinguishable from white though.
    Have overridden with: $grid-row-cell-alt-background: lighten(gray, 45.0); for now...

    Obviously there's probably another variable that should be used instead of gray, but will leave that up to those with knowledge of how the theming is meant to work

    Cheers,
    Westy

Similar Threads

  1. [2.0b1][CLOSED] gridPanel stripeRows - no effect
    By slobo in forum Ext 2.x: Bugs
    Replies: 7
    Last Post: 12 Aug 2011, 6:52 AM
  2. [2.0b1][SOLVED] Grid stripeRows
    By jshvrsn in forum Ext 2.x: Bugs
    Replies: 5
    Last Post: 29 Oct 2007, 9:10 AM
  3. [Ext 2.0 Revision 911] Grid stripeRows not working
    By ftftft in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 7 Sep 2007, 4:54 AM

Posting Permissions

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