We have a problem with the close of the RadWindow about Telerik-function (Behaviors=
We use a RadWindow with the Attribute "Behaviors=Close"
The RadWindow open with the button "ButtonOpenRadWindow".
Thge Radwindow must open after the Postback. That works with
We can close the Window about a another button and a server-side function.
"Close").We use a RadWindow with the Attribute "Behaviors=Close"
<telerik:RadWindow ID="RadWindowProgramCategory" EnableShadow="true" Behaviors="Close" runat="server"> ...... <asp:Button ID="ButtonCloseWindow" runat="server" Text="Close" OnClick="OnCloseWindow" /> ..... </telerik:RadWindow>The RadWindow open with the button "ButtonOpenRadWindow".
<asp:Button ID="ButtonOpenRadWindow" Text="Hinzufügen" ToolTip="Hinzufügen" runat="server" OnClick="OnOpenRadWindow"></asp:Button> protected void OnOpenRadWindow(object sender, EventArgs args) { AllVirtualCategories.SelectedIndex = -1; UpdateCatagoryFields(); RadWindowProgramCategory.Title = App_LocalResources.CategoryDataControl_ascx.RadWindow_TitleAddCategory; RadWindowProgramCategory.VisibleOnPageLoad = true; RadWindowProgramCategory.Enabled = true; RadWindowProgramCategory.Modal = true; RadWindowProgramCategory.AutoSize = true; String radWindowScript = JavaScript.GetJsOpenWindowIncCloseWindow(RadWindowProgramCategory, ""); ScriptManager.RegisterStartupScript(RadWindowProgramCategory, this.GetType(), "RadWindowProgramCategory", radWindowScript, true); }Thge Radwindow must open after the Postback. That works with
RadWindowProgramCategory.VisibleOnPageLoad = false; We can close the Window about a another button and a server-side function.
protected void OnCloseWindow(object sender, EventArgs args)
{
RadWindowProgramCategory.VisibleOnPageLoad = false;
RadWindowProgramCategory.Enabled = false;
}
When we close the RadWindow about icon on RadWindow Behaviors="Close" an we again a postback then opens the window again.
how can we change this?
Best regards
Daniela Fischer