RadWindow 不想遵守并留在限制区内
RadWindow does not want to comply and stay within a restriction zone
我有一个 radwindow 被调用,它不想与它在禁区内停留或打开有任何关系。
我查看了 Telerik Demo,然后从那里开始。我跟随演示并尝试修改 Radwindow 以按照我想要的方式工作,但它不起作用,我不确定为什么或哪里出错了。
我为它的限制区尝试了几种不同的方法,但无论我做了什么,它都不会留在我想要的地方。
window 在事件中打开,但最大化到全屏而不是在其区域中。
请不要在意菜单的 NavigationUrl,它们只是用于较早的测试。
这是调用 window 的脚本。
function OpenRadWindow() {
var myWindow = window.radopen(null, "RadWindow Test");
myWindow.center;
myWindow.maximize();
}
这是我的标记
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<div id="container" style="width: 100%; height: 100%">
<table>
<tr>
<td valign="top">
<div id="Nav" style="width: 250px; height: 100%; float: left;">
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" OnClientItemClicking="OnAreaClick">
<Items>
<telerik:RadPanelItem Text="Products" Expanded="true" runat="server">
<Items>
<telerik:RadPanelItem Text="Search Product" />
<telerik:RadPanelItem Text="Add Product" />
<telerik:RadPanelItem Text="Update Product" />
<telerik:RadPanelItem Text="Delete Product" />
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Vendors" Expanded="false" runat="server">
<Items>
<telerik:RadPanelItem Text="Search Vendor" NavigateUrl="BrowseVendors.aspx" />
<telerik:RadPanelItem Text="Add Vendor" NavigateUrl="WebForm3.aspx" />
<telerik:RadPanelItem Text="Update Vendor" />
<telerik:RadPanelItem Text="Delete Vendor" />
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Locations" Expanded="false" runat="server">
<Items>
<telerik:RadPanelItem Text="Search Location" />
<telerik:RadPanelItem Text="Add Location" />
<telerik:RadPanelItem Text="Update Location" />
<telerik:RadPanelItem Text="Delete Location" />
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Receiving" Expanded="false" runat="server">
<Items>
<telerik:RadPanelItem ImageUrl="Images/AddRecord.gif" Text="Search PO" />
<telerik:RadPanelItem ImageUrl="Images/AddRecord.gif" Text="Receive PO" />
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
</div>
</td>
<td width="100%">
<div id="RestrictionArea" style="width: 100%; height: 100%; border: 1px solid black; float: left;">
<asp:Panel ID="pnlRestArea" Width="100%" Height="625px" runat="server" BackColor="Gray">
<table>
<tr>
<td id="RZone">
</td>
</tr>
</table>
</asp:Panel>
</div>
</td>
</tr>
</table>
</div>
<div>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow runat="server" ID="RadWindow1" Height="300px" Width="400px" RestrictionZoneID="RZone">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
</div>
<telerik:RadButton AutoPostBack="false" ID="Button1" runat="server" OnClientClicked="OpenRadWindow" Text="Open RadWindow" />
我在 radwindow 属性本身有限制 ID,而不是它应该在的地方。它应该在 radwindowmanager 中,现在它在那里并且可以工作。
我有一个 radwindow 被调用,它不想与它在禁区内停留或打开有任何关系。 我查看了 Telerik Demo,然后从那里开始。我跟随演示并尝试修改 Radwindow 以按照我想要的方式工作,但它不起作用,我不确定为什么或哪里出错了。 我为它的限制区尝试了几种不同的方法,但无论我做了什么,它都不会留在我想要的地方。
window 在事件中打开,但最大化到全屏而不是在其区域中。
请不要在意菜单的 NavigationUrl,它们只是用于较早的测试。
这是调用 window 的脚本。
function OpenRadWindow() {
var myWindow = window.radopen(null, "RadWindow Test");
myWindow.center;
myWindow.maximize();
}
这是我的标记
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<div id="container" style="width: 100%; height: 100%">
<table>
<tr>
<td valign="top">
<div id="Nav" style="width: 250px; height: 100%; float: left;">
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" OnClientItemClicking="OnAreaClick">
<Items>
<telerik:RadPanelItem Text="Products" Expanded="true" runat="server">
<Items>
<telerik:RadPanelItem Text="Search Product" />
<telerik:RadPanelItem Text="Add Product" />
<telerik:RadPanelItem Text="Update Product" />
<telerik:RadPanelItem Text="Delete Product" />
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Vendors" Expanded="false" runat="server">
<Items>
<telerik:RadPanelItem Text="Search Vendor" NavigateUrl="BrowseVendors.aspx" />
<telerik:RadPanelItem Text="Add Vendor" NavigateUrl="WebForm3.aspx" />
<telerik:RadPanelItem Text="Update Vendor" />
<telerik:RadPanelItem Text="Delete Vendor" />
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Locations" Expanded="false" runat="server">
<Items>
<telerik:RadPanelItem Text="Search Location" />
<telerik:RadPanelItem Text="Add Location" />
<telerik:RadPanelItem Text="Update Location" />
<telerik:RadPanelItem Text="Delete Location" />
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Receiving" Expanded="false" runat="server">
<Items>
<telerik:RadPanelItem ImageUrl="Images/AddRecord.gif" Text="Search PO" />
<telerik:RadPanelItem ImageUrl="Images/AddRecord.gif" Text="Receive PO" />
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
</div>
</td>
<td width="100%">
<div id="RestrictionArea" style="width: 100%; height: 100%; border: 1px solid black; float: left;">
<asp:Panel ID="pnlRestArea" Width="100%" Height="625px" runat="server" BackColor="Gray">
<table>
<tr>
<td id="RZone">
</td>
</tr>
</table>
</asp:Panel>
</div>
</td>
</tr>
</table>
</div>
<div>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow runat="server" ID="RadWindow1" Height="300px" Width="400px" RestrictionZoneID="RZone">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
</div>
<telerik:RadButton AutoPostBack="false" ID="Button1" runat="server" OnClientClicked="OpenRadWindow" Text="Open RadWindow" />
我在 radwindow 属性本身有限制 ID,而不是它应该在的地方。它应该在 radwindowmanager 中,现在它在那里并且可以工作。