Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Contributor
Posts: 26
Registered: ‎07-24-2009
My Device: Not Specified

Disable listview scrolling

[ Edited ]

Is it possible to disable scrolling of a listview, especially for when using with touch events?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Disable listview scrolling

[ Edited ]

There is no direct way to disable the scrolling, why do you want to do this?

 

Any Control derived class can use the enabled property to prevent signals being processed...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__control.html#property-enable...

 

You can also set touchPropagation to passThrough...

 

http://developer.blackberry.com/native/documentation/cascades/dev/touch/touch_propagation.html#propa...

 

Or lastly overlay a container that swallows all the touch events, touchPropagation set to None.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Retired
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: Disable listview scrolling

Have you tried to set enabled to false or setting the focus policy to none?

also another thread for the same issue here
http://supportforums.blackberry.com/t5/Native-Development/how-do-disable-scrollview/td-p/1994853

Thanks,
Kareem.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte