Just wanted to share this code with you.This works with IE and Firefox.The Radwindow will always open in the center of the parent window even after you scroll the parent window:
<script type="text/javascript">
var w = 480, h = 340;
if (document.all) {
w = screen.availWidth;
h = screen.availHeight;
}
else
{
w = window.innerWidth;
h = window.innerHeight;
}
var popW = 630, popH = 500;//change this to match your RadWindow Width and Height
var leftPos = (w-popW)/2;
var topPos = (h-popH)/2;
function OnClientShow(radWindow)
{
if(document.documentElement && document.documentElement.scrollTop)
{
radWindow.MoveTo(leftPos,topPos+document.documentElement.scrollTop);
}
else if(document.body)
{
radWindow.MoveTo(leftPos,topPos);
}
}
</script>