CommandBar focus

4 posts, 0 answers
  1. Joe Sugden
    Joe Sugden avatar
    52 posts
    Member since:
    Feb 2010

    Posted 27 Jan 2011 Link to this post

    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!
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 28 Jan 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Joe Sugden
    Joe Sugden avatar
    52 posts
    Member since:
    Feb 2010

    Posted 28 Jan 2011 Link to this post

    We found the problem, for whatever weird reason it was caused by a call to Application.DoEvents()..
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 28 Jan 2011 Link to this post

    Hi Joe,

    Glad you have found a solution
    All the best
    Richard
Back to Top