Results 1 to 4 of 4

Thread: PivotGrid

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    175

    Default PivotGrid

    Hey Everyone,

    I've been using the PivotGrid (Nice, btw) and it is incredibly straight-forward to use. However, I have problem with the rendering of the PivotGrid.

    Whenever I render the grid, the leftAxis values are much larger than the value rows that are rendered (see screenshot)

    pivot-1.png

    I've tried all the various layouts (fit, auto, etc). This specific one has the layout as 'auto'. I want to add this actual pivotGrid to a VBOX Region on another panel and I also do not want to have to specify it's height as it is quite dyamic.

    I've looked at the samples, almost all of them set the height of the pivotgrid, so hopefully this isn't a requirement.

    Here is the code I used to generate this specific one;

    PHP Code:
    myWin = new Ext.Window({width500height500layout'auto'});
    myWin.show()

    myPivot = new Ext.grid.PivotGrid({
                
    store       : new RaciDAO({autoLoadfalse}).getStore(),
                
    aggregator  'sum',
                
    measure     'raci',
                
    renderer    : function(value) {

                    switch (
    value) {

                        case 
    1:
                            return 
    'R';
                            break;

                        case 
    2:
                            return 
    'A';
                            break;
                        case 
    3:
                            return 
    'C';
                            break;


                        case 
    4:
                            return 
    'I';
                            break;
                        default :
                            return 
    ''
                    
    }
                },
                
    leftAxis    : [
                    {
                        
    width       150,
                        
    dataIndex   'deliverable'
                    
    }
                ],

                
    topAxis     : [
                    {
                        
    width       50,
                        
    dataIndex   'roleName',
                        
    orientation 'vertical'
                    
    }
                ]
            });


    myPivot.getStore().setBaseParam('projectId'27);
    myPivot.getStore().load();

    myWin.add(myPivot);
    myWin.doLayout(); 

  2. #2
    Ext JS Premium Member
    Join Date
    Jun 2008
    Posts
    61

    Default

    I seem to be having the same problem.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Why are you using layout:'auto'? Shouldn't that be layout:'fit'?

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Posts
    2

    Default Pivot grid horizontal scroll bar missing when resized

    Hi,

    I am using ExtJS 3.4
    I have given the config option to the pivot grid, anchor: '100% 70%, autoScroll: true,
    It is embedded in a panel where layout:'anchor' is set.
    When the panel is resized, only vertical scroll bar is appearing.
    Please suggest

    Thanks,
    Sharanya

Similar Threads

  1. PivotGrid Enhancements?
    By Tumac in forum Community Discussion
    Replies: 19
    Last Post: 4 Jul 2011, 4:23 PM
  2. PivotGrid Axis are not showing
    By heidtmare in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 17 Dec 2010, 6:42 AM
  3. PivotGrid in 3.3.0
    By yakovsh in forum Community Discussion
    Replies: 13
    Last Post: 3 Dec 2010, 11:56 PM
  4. [CLOSED] Problem with the PivotGrid
    By greyknght1 in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 19 Aug 2010, 11:31 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
  •