Problem with open radwindow with navigateurl

2 posts, 0 answers
  1. Fabio Cirillo
    Fabio Cirillo avatar
    180 posts
    Member since:
    Jan 2010

    Posted 17 Jul 2013 Link to this post

    hello,
    I need to load an aspx page in a radwindow but do not charge anything.
    this is the code of radwindow:

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">
        <Windows>
            <telerik:RadWindow ID="schedineps" runat="server" Behavior="Minimize, Close, Move, Reload" Behaviors="Minimize, Close, Move, Reload" Modal="True" NavigateUrl="schedineps.aspx" Skin="WebBlue" style="display:none; z-index: 9000" VisibleStatusbar="False" VisibleTitlebar="False" AutoSize="True">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

    this is the code with which I open the codebihd radwindow:

    Dim script As String = "function f(){$find(""" + schedineps.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
    RadScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", script, True)
     

    this is page code aspx of schedineps.aspx:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="schedineps.aspx.vb" Inherits="schedineps" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link href="App_Themes/browser/chrome.css" rel="stylesheet" type="text/css" />
        <title></title>
        </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
            <style type="text/css">
                input {
                    text-transform: uppercase !important;
                }
     
                .riTextBox {
                    text-transform: uppercase !important;
                }
            </style>
            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                <script type="text/javascript">
                    function visiblediv(arg) {
                        if (arg == 1) {
                            first.style.display = 'block';
                            second.style.display = 'none';
                            var grid = $find("<%= RadGrid1.ClientID%>");
                            grid.get_element().style.height = "485px";
                        }
                        else
                            first.style.display = 'none';
                            second.style.display = 'block';
                            var grid = $find("<%= RadGrid1.ClientID%>");
                            grid.get_element().style.height = "675px";
                    }
                </script>
            </telerik:RadCodeBlock>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="Btnsalvamembro">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel2" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="Btndettaglio">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="Btnsalva">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="WebBlue">
            </telerik:RadSkinManager>
            <div id="container">
                <%-- gestione capofila --%>
                <div id="first" style="height: auto">
                    <asp:Panel ID="Panel1" runat="server" DefaultButton="Btnsalva">
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label1" runat="server" Text="Data arrivo:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadDatePicker ID="arrivo" runat="server" Width="120px">
                                        <Calendar ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"></Calendar>
                                        <DateInput ID="DateInput1" runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%"></DateInput>
                                        <DatePopupButton ToolTip="Apri calendario" />
                                    </telerik:RadDatePicker>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label2" runat="server" Text="Data partenza:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadDatePicker ID="partenza" runat="server" Width="120px">
                                        <Calendar ID="Calendar2" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"></Calendar>
                                        <DateInput ID="DateInput2" runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%"></DateInput>
                                        <DatePopupButton ToolTip="Apri calendario" TabIndex="1" />
                                    </telerik:RadDatePicker>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label3" runat="server" Text="Tipo cliente:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="tipoalloggiato" runat="server" Culture="it-IT" Width="130px" EnableLoadOnDemand="True" AutoPostBack="True" LoadingMessage="Caricamento...">
                                        <Items>
                                            <telerik:RadComboBoxItem runat="server" Text="Ospite singolo" Value="16" />
                                            <telerik:RadComboBoxItem runat="server" Text="Capo famiglia" Value="17" />
                                            <telerik:RadComboBoxItem runat="server" Text="Capo gruppo" Value="18" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </td>
                                <td id="tdetichettacomponenti" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label4" runat="server" Text="nr. componenti:"></asp:Label></td>
                                <td id="tdcampocomponenti" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadNumericTextBox ID="componenti" runat="server" Culture="it-IT" DbValueFactor="1" LabelWidth="0px" Value="1" Width="50px" DataType="System.Int32" MaxLength="4">
                                        <NumberFormat ZeroPattern="n" DecimalDigits="0" DecimalSeparator="."></NumberFormat>
                                        <ReadOnlyStyle HorizontalAlign="Right" />
                                        <DisabledStyle Font-Underline="False" HorizontalAlign="Right" />
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox></td>
                                <td id="tdetichettatipogruppo" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label5" runat="server" Text="Tipo gruppo:"></asp:Label></td>
                                <td id="tdcampotipogruppo" runat="server" style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="tipogruppo" runat="server" Width="200px" EnableItemCaching="True" EnableLoadOnDemand="True" EnableVirtualScrolling="True" LoadingMessage="Caricamento...">
                                        <WebServiceSettings Method="GetTipoGruppoNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label6" runat="server" Text="Cognome:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="cognome" runat="server" MaxLength="30" Width="300px">
                                    </telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label7" runat="server" Text="Nome:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="nome" runat="server" MaxLength="30" Width="300px">
                                    </telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label8" runat="server" Text="Sesso:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="sesso" runat="server" Culture="it-IT" Width="80px">
                                        <Items>
                                            <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/male16x16.png" Text="Uomo" Value="1" />
                                            <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/Girl16x16.png" Text="Donna" Value="2" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label9" runat="server" Text="Data nascita:" Width="78px"></asp:Label>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadDateInput ID="datanascita" runat="server" Width="90px" MaxLength="10" MinDate="1900-01-01">
                                    </telerik:RadDateInput>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label10" runat="server" Text="Luogo di nascita:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="luogonascita" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA LUOGO NASCITA" Height="200px">
                                        <WebServiceSettings Method="GetLuogonascitaNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label15" runat="server" Text="Cittadinanza:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="cittadinanza" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA CITTADINANZA" Height="200px">
                                        <WebServiceSettings Method="GetCittadinanzaNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label11" runat="server" Text="Luogo di residenza:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="luogoresidenza" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA LUOGO RESIDENZA" Height="200px">
                                        <WebServiceSettings Method="GetLuogoNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label12" runat="server" Text="Documento:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="documento" runat="server" Width="250px" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA DOCUMENTO" Height="200px">
                                        <WebServiceSettings Method="GetDocumentoNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label13" runat="server" Text="numero:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="numdocumento" runat="server" Width="155px" MaxLength="15">
                                    </telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label14" runat="server" Text="Luogo di rilascio:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="luogodocumento" runat="server" Width="230px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" EmptyMessage="SELEZIONA LUOGO DOCUMENTO" Height="200px">
                                        <WebServiceSettings Method="GetLuogoNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table id="Tabimposta" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label38" runat="server" Text="Tassa sogg.:" Width="78px"></asp:Label>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="imposta" runat="server" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True" MarkFirstMatch="true" Height="200px">
                                        <WebServiceSettings Method="GetImpostaNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btndettaglio" runat="server" Text="INSERISCI DETTAGLIO CLIENTE" ToggleType="CustomToggle" Checked="True"></telerik:RadButton>
                                </td>
                            </tr>
                        </table>
                        <table id="tabdettaglio4" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label29" runat="server" Text="Titolo:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="titolo" runat="server" Width="100px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" Height="80px">
                                        <WebServiceSettings Method="GetTitoloNome" Path="WebService.asmx" />
                                    </telerik:RadComboBox>
                                </td>
     
                            </tr>
                        </table>
                        <table id="tabdettaglio" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label22" runat="server" Text="Indirizzo:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="indirizzo" runat="server" MaxLength="50" Width="450px"></telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label24" runat="server" Text="Codice fiscale:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="codfiscale" runat="server" MaxLength="16"></telerik:RadTextBox></td>
                            </tr>
                        </table>
                        <table id="tabdettaglio1" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label23" runat="server" Text="Telefono:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="telefono" runat="server" MaxLength="15" Width="120px"></telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label25" runat="server" Text="Cellulare:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="cellulare" runat="server" MaxLength="15" Width="120px"></telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label26" runat="server" Text="Fax:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="fax" runat="server" MaxLength="15" Width="120px"></telerik:RadTextBox></td>
                            </tr>
                        </table>
                        <table id="tabdettaglio2" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label27" runat="server" Text="Email:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="email" runat="server" MaxLength="150" Width="250px"></telerik:RadTextBox></td>
                            </tr>
                        </table>
                        <table id="tabdettaglio3" runat="server" style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px; vertical-align: top;">
                                    <asp:Label ID="Label28" runat="server" Text="Note:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="note" runat="server" Width="700px" Height="80px" TextMode="MultiLine"></telerik:RadTextBox></td>
                            </tr>
                        </table>
                        <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <hr />
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btnsalva" runat="server" Text="Salva cliente">
                                    </telerik:RadButton>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btncamera" runat="server" Text="Gestione camere" Enabled="False">
                                    </telerik:RadButton>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btncerca" runat="server" Text="Cerca schedina">
                                    </telerik:RadButton>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btnuscita" runat="server" Text="Uscita">
                                    </telerik:RadButton>
                                </td>
                            </tr>
                        </table>
                        <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <hr />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
     
                </div>
                <%-- gestione componenti --%>
                <div id="second" style="height: auto">
                    <asp:Panel ID="Panel2" runat="server" DefaultButton="Btnsalvamembro">
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label16" runat="server" Text="Cognome:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="cognomemembro" runat="server" MaxLength="30" Width="300px">
                                    </telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label17" runat="server" Text="Nome:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadTextBox ID="nomemembro" runat="server" MaxLength="30" Width="300px">
                                    </telerik:RadTextBox></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label18" runat="server" Text="Sesso:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="sessomembro" runat="server" Culture="it-IT" Width="80px">
                                        <Items>
                                            <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/male16x16.png" Text="Uomo" Value="1" />
                                            <telerik:RadComboBoxItem runat="server" ImageUrl="~/image/icone/Girl16x16.png" Text="Donna" Value="2" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label19" runat="server" Text="Cittadinanza:" Width="78px"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="cittadinanzamembro" runat="server" Width="200px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True">
                                    </telerik:RadComboBox>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label20" runat="server" Text="Luogo di nascita:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="nascitamembro" runat="server" Width="200px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True">
                                    </telerik:RadComboBox>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <asp:Label ID="Label21" runat="server" Text="Luogo di residenza:"></asp:Label></td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadComboBox ID="residenzamembro" runat="server" Width="200px" EnableVirtualScrolling="True" LoadingMessage="Caricamento..." EnableItemCaching="True" EnableLoadOnDemand="True" ShowMoreResultsBox="True">
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                        <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <hr />
                                </td>
                            </tr>
                        </table>
                        <table style="width: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btnsalvamembro" runat="server" Text="Salva cliente">
                                    </telerik:RadButton>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btncameramembro" runat="server" Text="Gestione camere" Enabled="False">
                                    </telerik:RadButton>
                                </td>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <telerik:RadButton ID="Btnuscitamembro" runat="server" Text="Uscita">
                                    </telerik:RadButton>
                                </td>
                            </tr>
                        </table>
                        <table style="width: 1024px; height: auto; padding: 0px; margin: 0px">
                            <tr>
                                <td style="width: auto; padding: 0px; margin: 0px">
                                    <hr />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </div>
                <div id="grid" style="height: auto">
                    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AutoGenerateHierarchy="True" CellSpacing="0" Culture="it-IT" Height="485px" GridLines="None" PageSize="15" Skin="WebBlue" Width="1024px" AllowPaging="True">
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <MasterTableView>
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImgBtnDelete" runat="server" ImageUrl="~/image/icone/Delete16x16.png" ToolTip="Elimina movimento" />
                                    </ItemTemplate>
                                    <HeaderStyle Width="30px" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                    <ItemTemplate>
                                        <asp:Image ID="Imgimposta" runat="server" ImageUrl="~/image/icone/euro16x16.png" />
                                    </ItemTemplate>
                                    <HeaderStyle Width="30px" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                    <ItemTemplate>
                                        <asp:Image ID="Imgdettaglio" runat="server" ImageUrl="~/image/icone/schedina16x16.png" />
                                        <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Imgdettaglio" RelativeTo="Element"
                                            Position="MiddleRight" RenderInPageRoot="true" HideEvent="ManualClose" ManualClose="True">
                                            <table style="width: 100%;">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label30" runat="server" Text="Documento:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).documento%></td>
                                                    <td><asp:Label ID="Label31" runat="server" Text="Numero:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).ndocumento%></td>
                                                    <td><asp:Label ID="Label32" runat="server" Text="Luogo rilascio:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).luogodocumento%></td>
                                                </tr>
                                                <tr>
                                                    <td><asp:Label ID="Label33" runat="server" Text="Telefono:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).telefono%></td>
                                                    <td><asp:Label ID="Label34" runat="server" Text="Cellulare:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).cellulare%></td>
                                                    <td><asp:Label ID="Label35" runat="server" Text="Fax:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).fax%></td>
                                                </tr>
                                                <tr>
                                                    <td><asp:Label ID="Label36" runat="server" Text="Email:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).email%></td>
                                                </tr>
                                                <tr>
                                                    <td><asp:Label ID="Label37" runat="server" Text="Note:" Font-Bold="True"></asp:Label></td>
                                                    <td><%# CType(Container.DataItem, schedina.proprieta).note%></td>
                                                </tr>
                                            </table>
                                        </telerik:RadToolTip>
                                    </ItemTemplate>
                                    <HeaderStyle Width="30px" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="column">
                                    <ItemTemplate>
                                        <asp:Image ID="imgsesso" BorderWidth="0px" ImageUrl='<%# IIf(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "sesso")) = "1", "~/image/icone/male16x16.png", "~/image/icone/Girl16x16.png")%>'
                                            runat="server"></asp:Image>
                                    </ItemTemplate>
                                    <HeaderStyle Width="30px" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridNumericColumn DataField="idrecord" DataType="System.Int32" DecimalDigits="0" FilterControlAltText="Filter idrecord column" ReadOnly="True" UniqueName="idrecord" Visible="False">
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataField="idrecordconnesso" DecimalDigits="2" FilterControlAltText="Filter idrecordconnesso column" ReadOnly="True" UniqueName="idrecordconnesso" Visible="False">
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataField="sesso" DecimalDigits="2" FilterControlAltText="Filter sesso column" ReadOnly="True" UniqueName="sesso" Visible="False">
                                </telerik:GridNumericColumn>
                                <telerik:GridBoundColumn DataField="cognome" FilterControlAltText="Filter cognome column" HeaderText="Cognome" ReadOnly="True" UniqueName="cognome">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="nome" FilterControlAltText="Filter nome column" HeaderText="Nome" ReadOnly="True" UniqueName="nome">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="cittadinanza" FilterControlAltText="Filter cittadinanza column" HeaderText="Cittadinanza" ReadOnly="True" UniqueName="cittadinanza">
                                    <HeaderStyle Width="100px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="luogonascita" FilterControlAltText="Filter luogonascita column" HeaderText="Luogo di nascita" ReadOnly="True" UniqueName="luogonascita">
                                    <HeaderStyle Width="150px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="datanascita" DataType="System.DateTime" FilterControlAltText="Filter datanascita column" HeaderText="Data nascita" ReadOnly="True" UniqueName="datanascita">
                                    <HeaderStyle Width="85px" HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="luogoresidenza" FilterControlAltText="Filter luogoresidenza column" HeaderText="Luogo di residenza" ReadOnly="True" UniqueName="luogoresidenza">
                                    <HeaderStyle Width="150px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridNumericColumn DataField="ncomponenti" DataType="System.Int32" DecimalDigits="2" FilterControlAltText="Filter ncomponenti column" HeaderText="ncomponenti" ReadOnly="True" UniqueName="ncomponenti" Visible="False">
                                </telerik:GridNumericColumn>
                            </Columns>
     
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                            </EditFormSettings>
     
                            <PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="True"></PagerStyle>
                        </MasterTableView>
     
                        <PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="True" ChangePageSizeButtonToolTip="Cambia numero righe da visualizzare" FirstPageToolTip="Prima pagina" GoToPageButtonToolTip="A pagina" LastPageToolTip="Ultima pagina" NextPagesToolTip="Prossima pagina" NextPageToolTip="Prossima pagina" PagerTextFormat="Modifica pagina: {4} &nbsp;Pagina <strong>{0}</strong> di <strong>{1}</strong>, clienti <strong>{2}</strong> a <strong>{3}</strong> di <strong>{5}</strong>." PageSizeLabelText="Numero righe" PrevPagesToolTip="Pagine precedenti" PrevPageToolTip="Pagina precedente"></PagerStyle>
                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                    </telerik:RadGrid>
                </div>
            </div>
            <asp:HiddenField ID="hf_idcliente" runat="server" />
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Metro">
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadNotification ID="msg" runat="server" Position="Center" Title="Reception" EnableRoundedCorners="True" AutoCloseDelay="3500">
            </telerik:RadNotification>
        </form>
    </body>
    </html>


    radwindow with another new page without code aspx, function perfect, what's the problem in this page?

    bye
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 19 Jul 2013 Link to this post

    Hi Fabio,

    This seems to work fine for me, you can find attached the test pages (I have commented out whatever I cannot run) and a short video with the expected behavior.

    Since this page does not load the problem is most likely in the content page itself (schedineps.aspx) - for example a database connection fails, or a server error is thrown, etc. Does loading this page in a simple iframe make a difference? If not - then the problem is with the page and not with the RadWindow.

    On a side note - I would advise on removing the following two properties from RadWiIndow:
    - Behavior - it is deprecated in favor of Behaviors
    - Style - the z-index of the popup is controlled by the RadWindowManager

    You can also try setting the ReloadOnShow property to true in case the page gets cached by the browser.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top