Hi,
I would like to know if it's possible for a window (modal) to open another window modal as well.
Also, I tried multiple ways to open a window using server code but none seems to work if your window is used as a control container.
Here an example
I have this page :
Which open the window on the button click
What am I missing here ?
I would like to know if it's possible for a window (modal) to open another window modal as well.
Also, I tried multiple ways to open a window using server code but none seems to work if your window is used as a control container.
Here an example
I have this page :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page1.aspx.cs" Inherits="RadWindowTest.Page1" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!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></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Button1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div> <asp:Label ID="lbl" runat="server" Text="PAGE 1" Font-Size="Larger"></asp:Label><br /> <asp:Button ID="Button1" runat="server" Text="Show Second Window" onclick="Button1_Click" /> <telerik:RadWindow ID="RadWindow1" runat="server" runat="server" Behaviors="Close" DestroyOnClose="true" VisibleStatusbar="false" AutoSize="true" Modal="true"> <ContentTemplate> <asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList> </ContentTemplate> </telerik:RadWindow> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> </telerik:RadWindowManager> </div> </form>
<script>
function open() {
/*
var x = $find("<%= RadWindow1.ClientID %>");
x.show();
return false;
*/
}
</script>
</body></html>Which open the window on the button click
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace RadWindowTest{ public partial class Page1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { DropDownList1.Items.Add(new ListItem(DateTime.Now.ToShortDateString(), DateTime.Now.ToShortDateString())); RadWindowManager1.Windows.Add(RadWindow1);
//ClientScript.RegisterClientScriptBlock(this.GetType(), "open", "<script>open();</script>");
} }}What am I missing here ?