window close moves focus out of SL plug-in on Enter press

2 posts, 0 answers
  1. Atin
    Atin avatar
    10 posts
    Member since:
    Oct 2012

    Posted 09 Nov 2012 Link to this post


    I am facing an issue in Radwindow control. The window contains a list and two buttons at the bottom. Pressing any of the buttons at the bottom closes the window and i set the focus back to the button which opened it. It works fine everytime closing the window from the buttons. I also have code to handle Enter and escape key press. When the user presses the enter key, the window is closed and again try to set focus on the button that opened it in the window close event. But it works only once. Next time if i again open the popup and press the enter button, the focus comes to the opening button for a fraction of the milisecond and then quickly moves out of silverlight plugin (or maybe to the First element on the screen). Something overrides the bahvior of setting focus on the button. The same behavior is also occuring with Escape key. I am having really hard time to understand what is happening.

    Any help will be greatly appreciated.

  2. Boyan
    Boyan avatar
    758 posts

    Posted 14 Nov 2012 Link to this post

    Hi Atin,

    I am not really sure what might be causing this. I tried with a sample project, but everything was working fine at my side. I have attached the project so you can take a look and tell us if you are doing something different. It will be best if you could send us a sample project or a code snippet that can help us reproduce the issue and provide a solution.

    You can also try to set the focus to the button in DIspatcher.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top