PDA

View Full Version : how do i put vertical Scrollbar in dataview extjs4



pankajh24
3 Aug 2017, 11:28 PM
hiii i building a Ext Js 4 MVC application in which i m using Dataview for displaying images, but i want to put vertical scrollbar in dataview m trying autoScroll: true but is not working so how it is possible check my code and suggest me.




this.ImagePanel = new Ext.form.Panel({ //Panel
padding: '5 5 5 5',
layout: 'fit',
border: false,
//frame: true,
// collapsible: true,
title: 'Image Gallery',
height: 800,
width: 1000,
id: 'img-chooser-view',

items: new Ext.create('Ext.view.View', { //DataView
store: myStore,
tpl: imageTemplate,
autoHeight: true,
multiSelect: true,
layout: 'hbox',
renderTo: 'dataview',
overCls: 'x-view-over',
itemSelector: 'div.thumb-wrap',
trackOver: true,
emptyText: 'No images to display',
autoScroll: true //autoScroll:true here


})
});

Gary Schlosberg
4 Aug 2017, 12:30 PM
Is the form panel scrolling?

pankajh24
4 Aug 2017, 7:49 PM
Is the form panel scrolling?


No it is a View Scrolling , i want to put scroll bar into Dataview but using autoScroll:true its not working for me.

pankajh24
4 Aug 2017, 8:08 PM
style: {
overflowY: 'scroll'
},

i can see the ScrollBar using Above Config but its not working properly