Results 1 to 3 of 3

Thread: grid scroll

  1. #1
    Sencha User
    Join Date
    Feb 2014
    Posts
    23
    Answers
    2

    Default grid scroll

    Hi may i ask simply how can i achieve grid scroll-bar in below configuration
    I want
    Code:
    simplerplangrid
    to be scrollable

    Code:
    Ext.define('SCH.view.window.lab.simpler.LabSimplerWindow', {
    
    
        extend  : 'Ext.window.Window',
        xtype   : 'labsimplerwindow',
    
    
        requires: [
            'SCH.view.window.lab.simpler.LabSimplerWindowToolbar',
            'SCH.view.grid.lab.simpler.plan.SimplerPlanGrid',
            'SCH.view.grid.lab.simpler.sch.SimplerSchedulerGrid'
        ],
    
    
        soundOn     : true,
        modal       : true,
        collapsible : false,
        animCollapse: false,
        maximizable : false,
        maximized   : true,
        header      : false,
        minWidth    : 875,
        minHeight   : 475,
    
    
        tools :[
            {type:'gear'}
        ],
    
    
        dockedItems : [{xtype:'labsimplerwindowtoolbar'}],
        title       : 'Simpler',
    
    
        layout  : {
            align   : 'top',
            pack    : 'center',
            type    : 'hbox'
        },
    
    
        items  : [
            {
                xtype : 'container',
                layout: 'column',
                width : 900,
                items : [
                    {
                        xtype : 'simplerschedulergrid',
                        columnWidth: 1/3,
                        padding: '0 40 0 0'
                    },
                    {
                        xtype : 'simplerplangrid',
                        columnWidth: 2/3
                    }
                ]
            }
        ],
    
    
        listeners : {
            afterrender : function(w) {
                w.getEl().on('click',function(e){
    
    
                    if(e.getTarget().getAttribute('class').trim()==='x-grid-cell-inner') {
                        return;
                    }
                    w.down('simplerplangrid').getSelectionModel().deselectAll();
                });
            }
        }
    
    
    });

  2. #2
    Fredric Berling's Avatar
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    210
    Answers
    4

    Default

    Try autoScroll:true on the grid.

  3. #3
    Sencha User
    Join Date
    Feb 2014
    Posts
    23
    Answers
    2

    Default

    Thanks but i have already tried that .
    It seems like a layout issue but i couldn't figure out where to put which layout config.

Posting Permissions

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