我有两个与rad窗口有关的问题:
这是我的代码示例,附有屏幕截图:
<telerik:RadWindowManager ID="rwm" runat="server" ShowContentDuringLoad="false" Behaviors="Close,Move" VisibleStatusbar="false" Skin="Gray" Modal="true" KeepInScreenBounds = "true">
<Windows>
<telerik:RadWindow ID="rwAuditCredentials" runat="server" NavigateUrl="~/Pages/Audits/AuditCredentials.aspx" Title="Audit Credentials" Height="230px" Width="360px" KeepInScreenBounds="true">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
谢谢!
答案 0 :(得分:0)
我无法看到截图,所以我假设你遇到了同样的问题,如果将RadWindow拖到窗口的边界,那么它会自动开始滚动,你可以保留它窗户的边缘。
我们通过使用限制区属性解决了同样的问题。
示例显示它用于专用于纯粹用于Windows的页面部分的表格中,但如果您将其用作模式弹出窗口,则可以将其设置为主页面div的ID。
e.g。
<div id="zone1">
<p>Other page content as required</p>
</div>
<telerik:RadWindowManager ID="rwm" runat="server" ShowContentDuringLoad="false" Behaviors="Close,Move" VisibleStatusbar="false" Skin="Gray" Modal="true" KeepInScreenBounds = "true" RestrictionZoneID="zone1">
<Windows>
<telerik:RadWindow ID="rwAuditCredentials" runat="server" NavigateUrl="~/Pages/Audits/AuditCredentials.aspx" Title="Audit Credentials" Height="230px" Width="360px" KeepInScreenBounds="true">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
答案 1 :(得分:0)
谢谢,大卫! (3年之后)。您的解决方案适用于我,混合了模态和非模态窗口,以代码显示...
<body>
<form id="form2" runat="server">
<telerik:RadSplitter runat="server" ID="RadSplitter1" BorderStyle="None" PanesBorderSize="0">
<telerik:RadPane ID="RadPane1" runat="server">
<div id="ContentPane">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" >
</asp:ContentPlaceHolder>
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server" >
</asp:ContentPlaceHolder>
<asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server" >
</asp:ContentPlaceHolder>
</div>
</telerik:RadPane>
</telerik:RadSplitter>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" Style="z-index: 12345" KeepInScreenBounds="true" RestrictionZoneID="ContentPane">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" Title="Login" Height="250px"
Width="300px" Left="200px" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false"
Modal="true" Behaviors="Move, Close">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow2" runat="server" Title="Copy Asset" Height="250px"
Width="400px" Left="200px" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false"
Modal="true" Behaviors="Move, Close">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow3" runat="server" Title="Create Asset" Height="650px" Top="50px"
Width="800px" Left="125px" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false"
Modal="true" Behaviors="Move, Resize, Close">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow4" runat="server" Title="View/Edit Connections" Height="800px"
Width="800px" Left="50px" ReloadOnShow="true" ShowContentDuringLoad="false"
Modal="false" Behaviors="Move, Resize, Close, Maximize, Minimize">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow5" runat="server" Title="Make Connections" Height="750px"
Width="1150px" Left="100px" Top="75px" ReloadOnShow="true" ShowContentDuringLoad="false"
Modal="false" Behaviors="Move, Resize, Close">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow6" runat="server" Title="User Doc" Height="750px"
Width="1150px" Left="100px" Top="25px" ReloadOnShow="false" ShowContentDuringLoad="true"
Modal="true" Behaviors="Move, Resize, Close" NavigateUrl="~/Doc/CoreConnect.pdf">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow7" runat="server" Title="About" Height="300px"
Width="500px" Left="100px" Top="100px" ReloadOnShow="false" ShowContentDuringLoad="true"
Modal="true" Behaviors="Move, Resize, Close" VisibleStatusbar="false" >
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
</form>
</body>