IsActiveWindow bug?

3 posts, 1 answers
  1. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 23 Feb 2010 Link to this post

    I have setup a LostFocus event on every window that checks the IsActiveWindow property every time the windows loses focus (for debugging purposes). If I have two or more windows and switch between them (by clicking on the border or content) the property correctly gets set to FALSE. However, if the window loses focus to a menu (I use your radmenu) the property stays TRUE (the visual state of the window is unfocused). The problem is that when I click on the header/border of the window afterwards - the GotFocus event is not fired (probably because the IsActiveWindow is TRUE) and the window stays unfocused. I have to click the content area to fire the GotFocus event.
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 23 Feb 2010 Link to this post

    Hi Jorn,

     The activation and focus of the RadWindow control are not connected - window can have the focus and be the active window and can have no focus and again to the focused window - both scenarios are correct. What I could suggest you is to use the Activated event instead of the Focused event.

    Hope this helps!

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 23 Feb 2010 Link to this post

    Ok, I have played around with the code and managed to achieve what I wanted with just the Activated event (as an added bonus the code got cleaner :)). I thought the two events were connected, but obviously they are not - thanks for the tip!
Back to Top