This is a migrated thread and some comments may be shown as answers.

OffsetX or OffsetY

1 Answer 18 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 22 Nov 2011, 10:23 PM
How can I control where on-screen RadWindow should appear? I've tried left="10px" and top="50px" but nothing happens.
OffsetX, OffsetY, or other parameters?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 23 Nov 2011, 05:20 AM
Hello,

By design a modal RadWindow will always be shown in the page's center. If you want to move it somewhere else, you can use moveTo() method. Here is the sample code.
JS:
<script type="text/javascript" language="javascript">
 function OnClientClicked()
  {
    var wd = window.radopen(null, "RadWindow1");
    wd.moveTo(50, 50);
    return false;
  }
</script>


Thanks,
Princy.
Tags
Window
Asked by
Kjell
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or