1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    8
    Vote Rating
    0
    vibhor_msat is on a distinguished road

      0  

    Default Not getting scrollbar in my live grid

    below is the code for my livegrid.....i am not able to get scrollbar in tgat

    Code:
    var myView1 = new Ext.ux.grid.livegrid.GridView({
        nearLimit : 5,
        loadMask  : {
            msg :  'Buffering. Please wait...'
        }
    });
    
    var livegrid = new Ext.ux.grid.livegrid.GridPanel({
        enableDragDrop : false,
        cm             : new Ext.grid.ColumnModel([
            new Ext.grid.RowNumberer({header : '#' }),
            {header: "Number", align : 'left',   width: 160, sortable: true, dataIndex: 'c1'},
            {header: "String", align : 'left',   width: 160, sortable: true, dataIndex: 'c2'},
            {header: "Date",   align : 'right',  width: 160, sortable: true, dataIndex: 'c3'}
        ]),
        loadMask       : {
            msg : 'Loading...'
        },
        title      : 'Large table',
        height     : 800,
        stripeRows : true,
        width      : 600,
        store      : new Ext.ux.grid.livegrid.Store({
    //        autoLoad : true,
            url      : GLOBALCONTEXTPATH+'/superGroupSearchContrlr/superGroupAutoSearch.do',
            bufferSize : 300,
            reader     : new Ext.ux.grid.livegrid.JsonReader({
                id: '_id',
                root: 'data',
                totalProperty: 'totalCount',
                successProperty: 'success',
                messageProperty : 'message',
        
                versionProperty : 'version'
              }, [ {
                 name : 'c1', type:'string'
              },{
                 name : 'c2', type:'string'
              },{
                 name : 'c3',  type:'string'
            }]),
            sortInfo   : {field: 'c1', direction: 'ASC'}
        }),
        selModel : new Ext.ux.grid.livegrid.RowSelectionModel(),
        view     : myView1,
        bbar     : new Ext.ux.grid.livegrid.Toolbar({
            view        : myView1,
            displayInfo : true
        })
    });

    Please help
    Last edited by scottmartin; 9 Aug 2012 at 10:41 AM. Reason: Please format your code

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,316
    Vote Rating
    485
    scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute

      0  

    Default

    Are you embedding this inside other panel(s)? The grid is a panel itself? Adding it inside other panels can cause this behavior.

    Scott.

Thread Participants: 1

Tags for this Thread