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
New Member
mgladkov
Posts: 4
Registered: ‎05-11-2012
My Device: Torch
My Carrier: Bite Latvia
Accepted Solution

BB10: Focus element

Does anyone know, how to focus, for example, TextArea from code-behind in BB10?

 

Thanks!

Please use plain text.
New Contributor
Sureshtechendeavour
Posts: 6
Registered: ‎05-14-2012
My Device: blackberry pearl 8120
My Carrier: 5124641218

Re: BB10: Focus element

I think you should use focus() method if you are talking about HTML text.

Please use plain text.
New Member
mgladkov
Posts: 4
Registered: ‎05-11-2012
My Device: Torch
My Carrier: Bite Latvia

Re: BB10: Focus element

No, I'm speaking about Cascades native development.
Please use plain text.
New Contributor
Sureshtechendeavour
Posts: 6
Registered: ‎05-14-2012
My Device: blackberry pearl 8120
My Carrier: 5124641218

Re: BB10: Focus element

Which control are you using mgladkov?

Please use plain text.
New Member
mgladkov
Posts: 4
Registered: ‎05-11-2012
My Device: Torch
My Carrier: Bite Latvia

Re: BB10: Focus element

TextArea
Please use plain text.
New Contributor
Sureshtechendeavour
Posts: 6
Registered: ‎05-14-2012
My Device: blackberry pearl 8120
My Carrier: 5124641218

Re: BB10: Focus element

For any field you can override focus() method and this method gets automatically called when field gets focused.

Please use plain text.
Developer
mstawick
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2
My Carrier: Orange

Re: BB10: Focus element

In current Cascades beta SDK there is no way to manually set focus. 

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: BB10: Focus element

In Cascades as eventually released (10.0 and later) there is requestFocus() on all Controls.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
matizeitune
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: BB10: Focus element

i looked the same , thank you

If you find this information useful please click like --->
@mezeitune on twitter
Please use plain text.