PDA

View Full Version : always show vertical scrollbar?



knarz
15 Sep 2008, 3:55 AM
Hiho,

i am wondering if there is any possibility to have a EditorGridPanel, with a fixed height which always shows its vertical scrollbar, even if the datarows to not overflow the Panelheight?

I tried many soloutions with autoHeight, height, autoScroll but didnt get it working.

santosh.rajan
15 Sep 2008, 4:22 AM
You can try this. Let me know if it works. I havent tried.

this.grid.getGridEl().select('.x-grid3-scroller').first().setStyle('overflow-y:scroll');

Ferda Mravenec
22 Nov 2008, 9:32 AM
Its also possible to use CSS style like:


#grid-div .x-grid3-scroller {
overflow-y: scroll;
}

notdet
13 Jan 2009, 3:27 PM
I am using Dataview inside a panel. My requirement is similar, i want to show vertical scroll bar always. Were you able to solve your problem ?

I tried various things like autoScroll, but it will hide scroll upon requirement.

I am building dataview using template. Also, when I see in firebug, i see that element.style has overflow-y: auto; if in firebug, if i change that to scroll, it gives the result i am looking for, but I don't know how to achive it in my dataview inside a panel.

Thanks,