views:

299

answers:

1

Hi everybody,

I want to find out whether the scroll bar shows up in my Datagrid or not. How can I detect that?

Thanks! Markus

A: 

This question has already been answered here:

http://stackoverflow.com/questions/886748/detecting-if-uicomponent-has-scroll-bars-active

invertedSpear
Thanks, that's exactly what I was looking for...
Markus
NP that's what SO is for :-)
invertedSpear
actually I realized that this solution doesn't work for datagrid's cause they don't have a verticalScrollBar property. But there is a maxVerticalScrollPosition property. It can be used to calculate whether the scroll bar is displayed. Thats the case if the maxVerticalScrollPosition > 0!
Markus