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

CommandBar focus

3 Answers 92 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Joe Sugden
Top achievements
Rank 1
Joe Sugden asked on 28 Jan 2011, 12:10 AM
Hello,

We started having a weird problem with one of our command bars. It would become inactive somehow when you interact with a rad grid on the same win form, and when you mouse over it the buttons won't change their background as usual, and if you try to click one, it won't do anything. In order to make it work you have to click once anywhere on the bar and then it behaves properly again. I tried explicitly calling Focus() on the bar and the strip element in the code behind but did not help. Any ideas?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 28 Jan 2011, 10:25 AM
Hello Joe,

In our application, almost every form has a RadGridView and a RadCommandBar and I've not experienced this issue. Could you create a small sample that replicates this and post it here. I'll be happy to take a look at it for you.
Regards,
Richard
0
Joe Sugden
Top achievements
Rank 1
answered on 28 Jan 2011, 11:15 PM
We found the problem, for whatever weird reason it was caused by a call to Application.DoEvents()..
0
Richard Slade
Top achievements
Rank 2
answered on 28 Jan 2011, 11:41 PM
Hi Joe,

Glad you have found a solution
All the best
Richard
Tags
CommandBar
Asked by
Joe Sugden
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Joe Sugden
Top achievements
Rank 1
Share this question
or