This is a migrated thread and some comments may be shown as answers.

Open same radwindow any time

2 Answers 124 Views
Window
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 13 Sep 2012, 09:19 PM
Hi

I have a linkbutton that open radwindow, in the image "vista1.jpg" you see this link.

In the first clik of this link the radwindow open OK. In the image "vista2.jpg" you see stage, but when i close the radwindow and i clik the link immediately the radwindow opens as shown in the image "viasta3.jpg"

this is my code:

file .aspx

<%@ Page Title="" Language="VB" MasterPageFile="~/templates/Templateadmin.master" AutoEventWireup="false" CodeFile="puntogestioncarga.aspx.vb" Inherits="admin_Gestion_Control_puntogestioncarga" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        var saqtemp = jQuery.noConflict();

        function openWinMiPerfil(usuariosel) {
            var oWnd = radopen("rutacarga_completa.aspx?txtusuariosel=" + usuariosel, "RadWindowchangepassw");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelScriptppal" EnableAJAX="true" EnableEmbeddedScripts="true">
    </telerik:RadAjaxPanel>
    
    <telerik:RadWindowManager ID="RadWindowManager1"
                                                  ShowContentDuringLoad="false"
                                                  VisibleStatusbar="false"
                                                  ReloadOnShow="true"
                                                  runat="server"
                                                  Skin="Black"
                                                  EnableShadow="true"
                                                  DestroyOnClose="true"
                                                  Modal="true">
        <Windows>
            <telerik:RadWindow CssClass="sobretodo" 
                                             ID="RadWindowchangepassw
                                             runat="server" 
                                             Behaviors="Resize,Close,Maximize,Move,Reload"
                                             Width="980"
                                             Height="485"
>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    
    <asp:LinkButton ID="LinkButton1"
                              runat="server"
                             Text="Visualizar Ruta Seleccionada"
                              OnClick="abrircambiocontra"
                             CssClass="txt110066CC"
                              CausesValidation="false">
    </asp:LinkButton>
</asp:Content>


file aspx.vb

Protected Sub abrircambiocontra(ByVal sender As Object, ByVal e As EventArgs)
        Dim scriptfinal As String = "openWinMiPerfil('" & lblusuarioensession.Text & "'); return false;"
        RadAjaxPanelScriptppal.ResponseScripts.Add(scriptfinal)
    End Sub


please help me, I do not understand why this happens.

2 Answers, 1 is accepted

Sort by
0
rdmptn
Top achievements
Rank 1
answered on 14 Sep 2012, 11:41 AM
Your problem is the DestroyOnCloseProperty. Remove it if you do not need it. See here for more details: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-common.html, the fifth section.
0
Juan
Top achievements
Rank 1
answered on 14 Sep 2012, 12:02 PM
hi, rdmptn

thanks, you have the reason, the property DestroyOnClose was my problem!!
Tags
Window
Asked by
Juan
Top achievements
Rank 1
Answers by
rdmptn
Top achievements
Rank 1
Juan
Top achievements
Rank 1
Share this question
or