PDA

View Full Version : Not getting scrollbar in my live grid



vibhor_msat
9 Aug 2012, 12:13 AM
below is the code for my livegrid.....i am not able to get scrollbar in tgat



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

scottmartin
9 Aug 2012, 10:44 AM
Are you embedding this inside other panel(s)? The grid is a panel itself? Adding it inside other panels can cause this behavior.

Scott.