Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

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