1

我在 MasterPage (MasterPage.aspx) 中有 RadWindowManager:

<telerik:RadWindowManager ID="MasterRadWindowManager" runat="server" VisibleStatusbar="false"
        DestroyOnClose="false">

    </telerik:RadWindowManager>

如何将 RadWindow 从 ContentPage (Default.aspx) 添加到 MasterPage 中的 RadWindowManager?

4

1 回答 1

2

RadWindow:

RadWindow radwindowNews = new RadWindow();
radwindowNews.ID = "RadWindow1";
radwindowNews.Width = 820;
radwindowNews.Height = 600;
radwindowNews.Modal = true;
radwindowNews.ReloadOnShow = true;
radwindowNews.AutoSize = false;
radwindowNews.ShowContentDuringLoad = false;
radwindowNews.Behaviors = WindowBehaviors.Close;

Add the RadWindow:

RadWindowManager radManager =
    (RadWindowManager)this.Master.FindControl("MasterRadWindowManager");
radManager.Windows.Add(radwindowNews);
于 2012-05-25T16:18:16.287 回答