PDA

View Full Version : Auto Scroll in extjs, not working in



raj542
19 Jul 2012, 10:23 PM
Hi all,

I am using a 'Grid' which contains a list of files imported, i have used "autoscrol:true" to see al files, but i am not able to see morethan 7 files list strangely scroll bar is there but its not working prperly.

Code:
xtype:'grid' ,id:'fileGrid'
,x:0
,y:30
,layout:'fit'
,autoScroll:true

Anyhelp is highly appreciated.

thanks,
Raj

sword-it
19 Jul 2012, 10:44 PM
may you provide your full code or screen shots for better understanding?

friend
20 Jul 2012, 4:45 AM
Note that setting layout: 'fit' on the Grid itself does nothing. The layout should be set on the grid's parent container.

scottmartin
20 Jul 2012, 8:10 AM
Correct ...

These will have no affect on your grid. Scrolling is handled internally.

,layout:'fit'
,autoScroll:true

You are most likely over nesting your grid inside another panel or have some other layout issue.
The grid is a panel itself..

What is your desired layout?

Scott.