When I originally looked at the sample project, I just compared the JavaScript with my own project and didn't see any marked differences. I finally played with it a bit this morning and found that the sample project behaved properly, so I took a closer look. It turns out I'm having focus issues because I'm declaring and using a RadWindow, while the example doesn't. If I take out my RadWindow references from my radOpen call, I don't have issues with the new window appearing in the background. I modified the sample project and it started behaving the same way my current project does.
I changed the sample code from:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>
to this:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" Width="650" Height="480" Modal="true" VisibleStatusbar="false" VisibleTitlebar = "true" Behaviors="Close, Move"> </telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
I changed the JavaScript from this:
function openRadWindow() { radopen("Popup.aspx", null).moveTo(0, 0); }
To this:
function openRadWindow() { radopen("Popup.aspx", "RadWindow1").moveTo(0, 0); }
And now it behaves the same way my page does. Any ideas on how to fix this?
I've found that setting Modal = "false" results in the new window opening in the foreground. I'd prefer not to do this, but if this is the only solution, I can live with that.
Thanks,
Bryan