0

你如何在 Telerik 中做一个简单的弹出窗口?

aspx 中的代码式 C# 代码是什么:

===========

 <telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px">

           <ContentTemplate>

                <div style="padding: 10px; text-align: center;">

                     <telerik:RadButton ID="rbToggleModality" Text="Toggle modality" OnClientClicked="togglePopupModality"

                          AutoPostBack="false" runat="server" Height="65px" />

                </div>

                <p style="text-align: center;">

                     The format of the dates are incorrect.  Please use two digit month and

                     a four digit year for proper formatting.

                </p>

           </ContentTemplate>

  </telerik:RadWindow>
4

2 回答 2

1
        var composeScreenWindowName = "composeScreen";
        var communicationTypeId = 'CT01';
        var url = $page.url.create("You page url that you want to display");
        var win = $window.createPopup(url, { size: "800,600", behaviors: Telerik.Web.UI.WindowBehaviors.Close | Telerik.Web.UI.WindowBehaviors.Maximize | Telerik.Web.UI.WindowBehaviors.Move | Telerik.Web.UI.WindowBehaviors.Resize, name: composeScreenWindowName });     

使用 jquery 尝试 Telerik 弹出窗口

于 2013-09-24T04:05:44.980 回答
0

试试看 ,

<asp:Button ID="Button3" Text="open the window" runat="server"    
OnClientClick="openWinContentTemplate(); return false;" />

<script type="text/javascript">
                function openWinContentTemplate() {
                    $find("modalPopup").show();
                }
</script>
于 2013-09-24T05:22:53.613 回答