1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    20
    Answers
    1
    Vote Rating
    0
    willsun52000 is on a distinguished road

      0  

    Default Unanswered: How to add a filter into grouped heard

    Unanswered: How to add a filter into grouped heard


    try to add a filter into following extjs grid header
    Code:
      var grid = Ext.create('Ext.grid.Panel', {
            store: store,
            columnLines: true,
            plugins : [ filterRow ],
            columns: [{
                text     : 'Company',
                flex     : 1,
                sortable : false,
                dataIndex: 'company'
            }, {
                text: 'Stock Price',
                columns: [{
                    text     : 'Price',
                    width    : 75,
                    sortable : true,
                    renderer : 'usMoney',
                    dataIndex: 'price'
                }, {
                    text     : 'Change',
                    width    : 75,
                    sortable : true,
                    renderer : change,
                    dataIndex: 'change'
                }, {
                    text     : '% Change',
                    width    : 75,
                    sortable : true,
                    renderer : pctChange,
                    dataIndex: 'pctChange'
                }]
            }, {
                text     : 'Last Updated',
                width    : 85,
                sortable : true,
                renderer : Ext.util.Format.dateRenderer('m/d/Y'),
                dataIndex: 'lastChange'
            }],
            height: 350,
            width: 600,
            title: 'Grouped Header Grid',
            renderTo: 'grid-example',
            viewConfig: {
                stripeRows: true
            }
        });
    the grouped header 'Stock Price' has a long filter enclosed in the red box now. how can I change the long filter, divide into 3 parts for header 'Price', 'Change' and %Change.
    test1.jpg

    expected
    test2.jpg

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,077
    Answers
    674
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You will need to contact the author of this plugin and see if they have a solution.

    Regards,
    Scott.

Thread Participants: 1