OffsetX or OffsetY

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    223 posts
    Member since:
    May 2011

    Posted 22 Nov 2011 Link to this post

    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?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Nov 2011 Link to this post

    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.
Back to Top