This is a migrated thread and some comments may be shown as answers.

How to Prevent focus CommandBarDropDownList

3 Answers 115 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Fabrice
Top achievements
Rank 2
Iron
Iron
Fabrice asked on 12 Jan 2021, 02:15 PM

Hi,

I'm creating a usercontrol wich contains a RadCommandbar and an editor (richtext).

The commandbar contains two CommandBarDropDownList and standards radbutton.

I'm trying to prevent dropdownlists from gaining focus when I press tab, but neither can focus on dropdownlists nor tabstop on commandbar working.

Focus is still in my first CommandBarDropDownList.

 

I even tried https://docs.telerik.com/devtools/winforms/controls/commandbar/how-to/prevent-the-control-from-gaining-focus.

 

To explain exactly what's suppose to happen, when tab key is pressed the user control should gain focus, the commandbar should be skipped and the editor become the active control (kind of).

 

Thanks a lot for helping me.

 

Cf: my userControl

 

 

3 Answers, 1 is accepted

Sort by
0
Fabrice
Top achievements
Rank 2
Iron
Iron
answered on 12 Jan 2021, 02:22 PM
The userControl
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jan 2021, 01:23 PM

Hi, Fabrice,

Please make sure that you set the CommandBarDropDownList.DropDownStyle property to DropDownList since in the default style mode there is a textbox that can handle user's input. Then, simply set the RadCommandBar.TabStop property to false and the focus wouldn't be received in the command bar when pressing the Tab key.

I have prepared a sample project for your reference. Please give the attached application a try and see how it works on your end.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Fabrice
Top achievements
Rank 2
Iron
Iron
answered on 14 Jan 2021, 08:23 AM
Thanks a lot, it works smoothly!
Tags
CommandBar
Asked by
Fabrice
Top achievements
Rank 2
Iron
Iron
Answers by
Fabrice
Top achievements
Rank 2
Iron
Iron
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or