The example given in the RadControls documentation (getting started) is working fine in regular aspx pages, but I can’t get it to work from the Master/Content page. It could make it work in the Content Page after setting the property of “VisibleOnPageLoad” to TRUE, however it will display RadWindow automatically, when the page is loaded.
My problem is that I don’t want to display the RadWindow initially when the page is loaded. I need to display RadWindow only after a control (ex.Button) is clicked.
TheRadScriptManager is on MasterPage, the RadWindowManager is on Content Page.
How can I open RadWindow using a control (ex. Button) from a content page?
Thank You,
Thomas
This is my code from content page:
<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultMaster.Master" AutoEventWireup="true" CodeBehind="Default1.aspx.cs" Inherits="TestRadWindow.Default" %> |
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> |
</asp:Content> |
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" |
ReloadOnShow="True"> |
<Windows> |
<telerik:RadWindow ID="rdWnd" runat="server" Behavior="Default" |
InitialBehavior="None" Left="" NavigateUrl="Sample1.aspx" |
OpenerElementID="LinkButton1" Top="" ReloadOnShow="True" Visible="True" |
EnableViewState="True" > |
</telerik:RadWindow> |
</Windows> |
</telerik:RadWindowManager> |
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton> |
</asp:Content> |