I have written server side code to open a RadWindow using RADOpen method in a treeview's context menu event. its working fine but I have a problem that if I click the other node in the treeview after closing the RadWindow then I'm getting the same RadWindow again.
the below is the code behind,
string
jsNewSection = "function btnNewClick(){ ";
jsNewSection += "var oWnd = radopen('Sample.aspx?ID=" + id + "&name=" + strName+ ', 'RadWindow1'); ";
jsNewSection += " oWnd.SetSize (800, 280); oWnd.center(); return false; ";
jsNewSection += "Sys.Application.remove_load(btnNewClick); }; Sys.Application.add_load(btnNewClick); ";
RadScriptManager.RegisterStartupScript(this, this.GetType(), "btnNewClick", jsNewSection, true);
html,
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" EnableViewState="false" VisibleOnPageLoad="false">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" EnableViewState="false" ></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Please provide me a solution to prevent from opening again.
Thanks...
Elangovan P