Hi,
I have a set of links in one of the usercontrol. The same usercontrol contains two RadWindows. I am binding another usercontrol within the ContentTemplate section of RadWindow. When the user clicks on the link a radwindow should be opened. When the user clicks on the button that present in the radwindow, i need to perform some process and close the radwindow. Then show the second radwindow with a success message. I am unable to close the first radwindow from usercontrol button click event. How to achieve this?
Thanks in advance.
I have a set of links in one of the usercontrol. The same usercontrol contains two RadWindows. I am binding another usercontrol within the ContentTemplate section of RadWindow. When the user clicks on the link a radwindow should be opened. When the user clicks on the button that present in the radwindow, i need to perform some process and close the radwindow. Then show the second radwindow with a success message. I am unable to close the first radwindow from usercontrol button click event. How to achieve this?
Thanks in advance.
UserControl 1 <script type="text/javascript"> function closeAndOpen() { $find("<%= modalWindow.ClientID %>").close(); $find("<%= confirmationWindow.ClientID %>").show() } </script> <div class="links"> <asp:LinkButton ID="changeProfile" runat="server" meta:resourcekey="changeUsername" CssClass="fontUnderline linkFont noLink" CausesValidation="False" OnClick="changeProfile_Click"></asp:LinkButton> </div> <telerik:RadWindowManager ID="radWindowManager" runat="server" DestroyOnClose="false" EnableShadow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" Opacity="100"> <Windows> <telerik:RadWindow ID="modalWindow" runat="server" Visible="false" VisibleOnPageLoad="true" VisibleStatusbar="false" Behaviors="None"> <ContentTemplate> <uc:Profile ID="changeProfileControl" runat="server" Visible="false" /> </ContentTemplate> </telerik:RadWindow> <telerik:RadWindow ID="confirmationWindow" runat="server" Visible="false" VisibleOnPageLoad="true" VisibleStatusbar="false" Behaviors="None"> <ContentTemplate> <uc:successmessage ID="confirmation" runat="server" /> </ContentTemplate> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> UserControl 2: In my button click event I am registering the script Protected Button_Click() { //Do some process ScriptManager.RegisterStartupScript(this, this.GetType(), "Testing Script", "closeAndOpen();", true); }