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

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

1 Answer 32 Views
Window
This is a migrated thread and some comments may be shown as answers.
Atin
Top achievements
Rank 1
Atin asked on 09 Nov 2012, 06:00 AM
Hi,

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.

Thanks
Atin

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 14 Nov 2012, 06:40 PM
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,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Window
Asked by
Atin
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or