Threaded View

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    6
    Vote Rating
    0
    Higgs.Boson is on a distinguished road

      0  

    Default Answered: vertical scrollbar in ExtJS GridPanel

    Answered: vertical scrollbar in ExtJS GridPanel


    I'm working on a project where I have a GridPanel on a page. The panel can display any number of rows. When the number of rows is too large, GridPanel doesn't display an vertical scrollbars. Here is the code:
    Code:
    Ext.onReady(function(){        var myData = [
                ['start'],['1'], ['2'], ['3'], ['4'], ['5'], ['6'], ['7'], ['8'], ['9'], ['10'], ['11'], ['12'], ['13'],
                ['14'], ['15'], ['16'], ['17'], ['18'], ['19'], ['20'], ['21'], ['22'], ['23'], ['24'], ['25'],
                ['26'], ['27'], ['28'], ['29'], ['30'], ['31'], ['32'], ['33'], ['34'], ['35'], ['36'], ['end']
            ];
    
    
            var store = new Ext.data.ArrayStore({
                fields: [ {name: 'values'} ]
            });
    
    
            store.loadData(myData);
    
    
            var grid = new Ext.grid.GridPanel({
                store: store,
                columns: [{ header: 'values', dataIndex: 'values'}]
            });
    
    
            new Ext.Viewport({
                padding:10,
                layout:'fit',
                items: [{
                    xtype: 'tabpanel',
                    items: [{
                        title: 'Tab1',
                        items: [grid]
                    }]
                }],
                renderTo: Ext.getBody()
            });
    
            });


    Note, that the total number of rows greater than 36. In my window display only 29 rows:
    eng.jpg


  2. It depends on how you want to display Panel1 and grid. I'm assuming you are looking for something like this:

    Code:
            var grid = new Ext.grid.GridPanel({
                store: store,
                flex: 1,
                columns: [{ header: 'values', dataIndex: 'values'}]
            });
    
    
    
    
            new Ext.Viewport({
                padding:10,
                layout:'fit',
                items: [{
                    xtype: 'tabpanel',
                    items: [{
                        title: 'Tab1',
                        layout: {
                            type: 'vbox',
                            align: 'stretch'
                        },
                        items: [Panel1,grid]
                    }]
                }],
                renderTo: Ext.getBody()
            });

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi