Results 1 to 3 of 3

Thread: Pivot Grid how to config width a columns?

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Location
    Colombia
    Posts
    7

    Default Pivot Grid how to config width a columns?

    hi everybudy, i have a problem in the next code, I can not find the settings to allow me to place the columns width in my pivot grid.

    my code is:

    Code:
    grid = new Ext.grid.PivotGrid({
                        title     : 'Gastos',
                        store     : dsGridCosto,                    
                        aggregator: 'sum',
                        measure   : 'valor',                    
                        
                        viewConfig: {
                            trackMouseOver : true,
                            getCellCls: function(value) {
                                if (value < 20) {
                                    return 'expense-low';
                                } else if (value < 75) {
                                    return 'expense-medium';
                                } else {
                                    return 'expense-high';
                                }
                            }
                        },
                        
                        leftAxis: [{
                                dataIndex: 'cliente', width: 400
                            }],
                         
                        topAxis: [{
                                dataIndex: 'ejecutor', width: 200
                            }]                                               
                        
                    });                                
                }
    2013-07-23_171804.jpg

    somebody can help me please?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Have you tried defaultHeaderWidth?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Location
    Colombia
    Posts
    7

    Default I found the solution

    its very simple, the layout config of panel that contain the pivot grid i change of fit to absolute and ready!!

    Code:
         tPanel = new Ext.Panel({                     
                                                 region: 'center',                     
                                                 width:'200%',                                                                     
                                                 height:'100%', 
                                                 layout:'absolute',         
                                                autoScroll: true                                
                                              });

    2013-07-25_114353.jpg

Tags for this Thread

Posting Permissions

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