Hi,
I am having a problem with RadWindow control. On the click of server side button control, radwindow is opened which is fine. User closes it. When Page Postback happens, it automatically opens which is undesirable. How can I get rid of this behaviour?
Code Snippet - Html Source...
<telerik:RadWindowManager ID="ExclusionWindow" runat="server" Skin="Office2007" Width="500"
Height="400" Visible="true">
</telerik:RadWindowManager>
..................
Code behind ..
protected void btnSetExclusion_Click(object sender, EventArgs e)
{
if (Master == null) return;
Label lblPortfolio = (Label)Master.FindControl("lblPortfolioID");
int orgID = Convert.ToInt32(lblPortfolio.Text);
RadWindow window = new RadWindow()
{
ID = "Exclusion Window",
VisibleOnPageLoad = true,
NavigateUrl = "frmCMExclusions.aspx?OrgID=" + orgID,
Modal = true,
DestroyOnClose = true,
Behaviors = WindowBehaviors.Close
};
ExclusionWindow.Visible = true;
ExclusionWindow.Windows.Add(window);
ExclusionWindow.DestroyOnClose = true;
}
Many thanks.
Milan G
I am having a problem with RadWindow control. On the click of server side button control, radwindow is opened which is fine. User closes it. When Page Postback happens, it automatically opens which is undesirable. How can I get rid of this behaviour?
Code Snippet - Html Source...
<telerik:RadWindowManager ID="ExclusionWindow" runat="server" Skin="Office2007" Width="500"
Height="400" Visible="true">
</telerik:RadWindowManager>
..................
Code behind ..
protected void btnSetExclusion_Click(object sender, EventArgs e)
{
if (Master == null) return;
Label lblPortfolio = (Label)Master.FindControl("lblPortfolioID");
int orgID = Convert.ToInt32(lblPortfolio.Text);
RadWindow window = new RadWindow()
{
ID = "Exclusion Window",
VisibleOnPageLoad = true,
NavigateUrl = "frmCMExclusions.aspx?OrgID=" + orgID,
Modal = true,
DestroyOnClose = true,
Behaviors = WindowBehaviors.Close
};
ExclusionWindow.Visible = true;
ExclusionWindow.Windows.Add(window);
ExclusionWindow.DestroyOnClose = true;
}
Many thanks.
Milan G