Hi guys,
i've created this radwinodw on my webpage:
when i press the imagebutton "imgBtnclosepwd" star the postback. Is possibile with javascript code close the radwindows without postback? I usede this code too but there's erro when close radwindow:
Bye
i've created this radwinodw on my webpage:
<telerik:RadWindow ID="RadWindowChangepwd" runat="server" ShowContentDuringLoad="false" Width="360px" Height="220px" Title="Cambio password" Behaviors="None" Modal="True" Behavior="None" Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png" VisibleStatusbar="False" Skin="Simple" ReloadOnShow="True"> <ContentTemplate> <div class="Divchangepwd"> <div class="Divchangepwd1"> <telerik:RadAjaxPanel ID="RadAjaxPanelpwd" runat="server"> <table style="width:100%;"> <tr> <td colspan="2" style="padding-left: 10px; padding-top: 10px"> <telerik:RadTextBox ID="Txtpwdnow" Runat="server" Label=" Password attuale:" LabelWidth="110px" MaxLength="20" TextMode="Password" Width="300px"> </telerik:RadTextBox> </td> </tr> <tr> <td colspan="2" style="padding-left: 10px"> <telerik:RadTextBox ID="Txtpwdnew" Runat="server" Label="Nuova password:" LabelWidth="110px" MaxLength="20" TextMode="Password" Width="300px"> </telerik:RadTextBox> </td> </tr> <tr> <td colspan="2" style="padding-left: 10px"> <telerik:RadTextBox ID="Txtpwdnewconf" Runat="server" Label="Conferma password:" LabelWidth="110px" MaxLength="20" TextMode="Password" Width="300px" AutoPostBack="False"> </telerik:RadTextBox> </td> </tr> <tr> <td colspan="2" style="padding-left: 10px; padding-top:15px"> </td> </tr> <tr> <td align="center"> <asp:ImageButton ID="Imgbtnconfermapwd" runat="server" ImageUrl="~/Image/conferma.png" OnClientClick="return CallNotification()" /> </td> <td align="center"> <asp:ImageButton ID="ImgBtnClosepwd" runat="server" ImageUrl="~/Image/esci1.png" /> </td> </tr> </table> </telerik:RadAjaxPanel> </div> </div> </ContentTemplate> </telerik:RadWindow>when i press the imagebutton "imgBtnclosepwd" star the postback. Is possibile with javascript code close the radwindows without postback? I usede this code too but there's erro when close radwindow:
function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow;}function Close() { GetRadWindow().close();}Bye