I have a page with a RadEditor on it. I have a test button that posts causing a model RadWindow to open over the RadEditor. When the page refreshes, the editor gets its text but then disappears when the RadWindow opens over it. The RadEditor text reappears when the RadWindow is closed.
The test window is open from a javascript function that is initiated by code.
Page.ClientScript.RegisterStartupScript(this.GetType(), "OpenTest", "<
script
type
=
'text/javascript'
>Sys.Application.add_load(OpenTestWindow);</
script
>");
OpenTestWindow is
function OpenTestWindow() {
Sys.Application.remove_load(OpenTestWindow);
setTimeout(function () {
var browserWidth = $telerik.$(window).width();
var browserHeight = $telerik.$(window).height();
var oWnd = GetRadWindow();
console.log("oWnd " + oWnd);
oWnd.Visible = true;
oWnd.show();
oWnd.setSize(Math.ceil(browserWidth * 80 / 100), Math.ceil(browserHeight * 80 / 100));
oWnd.center();
}, 300);
}
function GetRadWindow()
{
var manager = $find("<%= RadWindowManagerMessages.ClientID %>");
return manager.open(null, "TestWindow");
}
Sys.Application.remove_load(OpenTestWindow);
setTimeout(function () {
var browserWidth = $telerik.$(window).width();
var browserHeight = $telerik.$(window).height();
var oWnd = GetRadWindow();
console.log("oWnd " + oWnd);
oWnd.Visible = true;
oWnd.show();
oWnd.setSize(Math.ceil(browserWidth * 80 / 100), Math.ceil(browserHeight * 80 / 100));
oWnd.center();
}, 300);
}
function GetRadWindow()
{
var manager = $find("<%= RadWindowManagerMessages.ClientID %>");
return manager.open(null, "TestWindow");
}
I need to be able to look at the editor contents while the RadWindow is open.
This is a very strange problem