Hi,
Is it possible to capture the position of a RadWindow opened using JavaScript?
I am opening a RadWindow using the code below. After opening and then moving the RadWindow a function OnClientDragEnd is not called. I need to capture the position of a rad window so that I can re-open it after a postback.
Is it possible to capture the position of a RadWindow opened using JavaScript?
I am opening a RadWindow using the code below. After opening and then moving the RadWindow a function OnClientDragEnd is not called. I need to capture the position of a rad window so that I can re-open it after a postback.
function OpenWnd(Title, Url) {
var oWindow = window.radopen(Url, null);
oWindow.SetSize(800, 500);
oWindow.SetTitle(Title);
oWindow.SetModal(false);
oWindow.Center();
oWindow.set_status('');
oWindow.OnClientDragEnd = "OnClientDragEnd";
}
function OnClientDragEnd(sender, args) {
alert('aaa');
var position = sender.getWindowBounds();
var x = position.x;
var y = position.y;
var ht = position.height;
var w = position.width;
}
Many thanks