
Thanks,
Terry Foster
23 Answers, 1 is accepted
This is expected when there is no content in the RadWindow control. Could you please try this scenario with a content. Everything should be fine.
George
the Telerik team

Thanks,
Terry

Thanks,
Terry

In summary, I would suggest working to make the 'ShowDialog' behavior of your RadWindow to be more consistent with ChildWindow, which never allows me to get into these funky states.
Thanks,
Terry
Yes, you are right - there are some differences between ChildWindow and RadWindow. Reason for this is because the RadWindow controls is designed to work in three types of applications - silverlight, wpf and the xbap application.
George
the Telerik team

Terry
The reason for this is that we cannot freeze the layout when a modal popup is shown. We open a big transparent window that gets the click of the mouse, not the focus. I would suggest you manually to forbid setting focus to any control in your application except these in the modal window. Sorry for any inconvenience caused.
We are making some changes to the RadWindow and we will definitely look into this scenario.
Please do not hesitate to contact us if you require any further information.
George
the Telerik team

I agree with Terry. Having focus in the background of a modal dialog doesn't make sense; it goes against the whole principle of modal. I think "manually forbidding focus to be set to any control in the application except those in the modal window" is convoluted and not really a practical solution. This is a bug or a design flaw and needs to be fixed.

Did you find any workaround for this issue? I have a dialog BusyIndicator, and it doesn't get focus until user clicks there.
I tried setting focus in Loaded event handler
Dispatcher.BeginInvoke(() => { TextBoxContent.Focus(); });
but it didn't help.
Thanks
---
Mike

Terry

RadWindow rw = new RadWindow();
rw.Content = siControl;
rw.ShowDialog();
The problem is the focus is still in the cell, not in my RadWindow. I can still type in that cell and I can tab all around the GridView. How do I get the focus switched to the content of my RadWindow.
I have tried to reproduce the scenario you described, but still without any success. Once the RadWindow is visualized, it gets the focus and editing of the grid is disabled. May you take a look at the sample attached to verify whether there are some misunderstandings according to your particular settings and requirements ?
Best wishes,
Maya
the Telerik team

We reproduced the problem. I would suggest setting a focus on the first textbox on Loaded event handler. This will resolve the issue. Please, refer to the following code snippet:
public
PopupControl()
{
InitializeComponent();
this
.Loaded += (s, o) =>
{
this
.textBox1.Focus();
};
}
I hope this helps.
George
the Telerik team

This trick would not work for me.
All my forms have no controls inside it, they are created dinamically by code, so hacking the Load is not possible.
I need a solution to this.
Regards,
Pablo
In this case you can subscribe to the Loaded event of the textbox and set the focus in its handler.
Hope this helps.
Greetings,
Yana
the Telerik team

Thanks for your reply. That works, but don't fits at all for me. I have an scenario that I must (depending on some code) to set the Focus manually by code even not in the Load event, so I really don't know why this don't works outside the Load event.
Regards,
Pablo Roca

Finally I solved the issue:
Doing an UpdateLayOut prior to the Focus works perfectly. Taken from:
http://www.dotnetspark.com/kb/1792-set-focus-to-textbox-silverlight-3.aspx
(yes it says is a SilverLight 3 bug and I work with SilverLight 4 . but works(
loobject.IsTabStop = True
loobject.UpdateLayOut()
loobject.Focus()
Pablo Roca
Spain
I'm glad that you've managed to resolve the issue.
Greetings,
Yana
the Telerik team

I have made a screen video of my experience. Let me know how I can send this.
Thanks,
Joel.
Please open a support ticket and attach the video there. Note that you should first zip it.
Thanks in advance
Greetings,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Our application opens a Window when the CellEditEndingEvent is called in a RadGridViewCell. Whatever we try, we cannot focus on the Window.
Can you try the attached project - I've tested it with our latest official version and everything works as expected? What is the version of RadControls that you are using? Can you modify the project to reproduce the issue?
I'm looking forward to hearing from you.
Regards,
Rosen Vladimirov
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>