<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="Positioning._Default" %>

<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="radW" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
  <radW:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
      
      <radW:RadWindow 
        VisibleOnPageLoad="true" 
        VisibleStatusbar="false" 
        Behavior="move"  
        NavigateUrl="Webform1.aspx" 
        Width="150" Height="100" 
        Title="No offset element"/>          
      
      <radW:RadWindow 
        VisibleOnPageLoad="true" 
        VisibleStatusbar="false" 
        Behavior="move"  
        NavigateUrl="Webform1.aspx" 
        Width="150" Height="100" 
        OffsetElementId="OffsetElement" 
        Title="Offset element only"/>
        
      <radW:RadWindow 
        VisibleOnPageLoad="true" 
        VisibleStatusbar="false" 
        Behavior="move"  
        NavigateUrl="Webform1.aspx" 
        Width="150" Height="100" 
        OffsetElementId="OffsetElement" 
        Top="200" Left="200" 
        Title="Top=200 Left=200"/>
        
      <radW:RadWindow 
        VisibleOnPageLoad="true" 
        VisibleStatusbar="false" 
        Behavior="move"  
        NavigateUrl="Webform1.aspx" 
        Width="150" Height="100" 
        OffsetElementId="OffsetElement" 
        Top="-100" Left="-150" 
        Title="Top=-100 Left=-150"/>                              
    </Windows>
  </radW:RadWindowManager>    
  <div id="OffsetElement" style="background-color: WhiteSmoke; width: 50%; height: 50%;
    border-color: Black; border-width: thin; border-style: solid; left: 25%; 
    position: absolute; top: 25%; vertical-align: middle; text-align: center;">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
  </div>
</form>
</body>
</html>
