PDA

View Full Version : grid scroll



oracle.cons.tr
28 Mar 2014, 5:08 PM
Hi may i ask simply how can i achieve grid scroll-bar in below configuration
I want
simplerplangrid to be scrollable



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();
});
}
}


});

Fredric Berling
29 Mar 2014, 1:16 AM
Try autoScroll:true on the grid.

oracle.cons.tr
29 Mar 2014, 5:24 AM
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.