我的代码:
<asp:ImageButton ID="btnAddReport" runat="server" OnClientClick="return AddFavoritePopup()"
ImageUrl="~/Content/images/add_favorite.jpg" Width="24px" Height="20px"
style="vertical-align:middle"/>
function AddFavoritePopup() {
var radWindow = document.getElementById('AddFavoriteRadWindow');
radWindow.show()
}
<telerik:RadWindowManager runat="server" ID="RadWindowManager2" Title="Add Favorite"
Behaviors="Close" VisibleStatusbar="False" Modal="False">
<Windows>
<telerik:RadWindow ID="AddFavoriteRadWindow" Width="500" Height="300" VisibleOnPageLoad="false" CssClass="radwindow" runat="server">
<ContentTemplate>
<table>
<tr>
<asp:Label ID="lblFavorite" runat="server" Text="Favorites: "></asp:Label>
<asp:TextBox ID="txtReportFavorite" runat="server"></asp:TextBox>
</tr>
<tr>
<asp:Button ID="btnOk" runat="server" Text="OK" Width="50" Height="25" onclick="btnOk_Click" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="50" Height="25" onclick="btnCancel_Click" />
</tr>
</table>
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
如何在脚本中打开 RadWindow。我尝试了显示功能。它没有打开。谢谢。