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

another problem with radwindow

1 Answer 40 Views
Window
This is a migrated thread and some comments may be shown as answers.
Webster Velasco
Top achievements
Rank 2
Webster Velasco asked on 15 Dec 2009, 04:57 PM
hi

i have a problem.. my window doest open at all

here is the code

<%@ Page Language="vb"MasterPageFile="Main.Master" AutoEventWireup="false" CodeBehind="ElencoUTEPagine.aspx.vb" Inherits="WebBIODemo.UTEPagine" %> 
  
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">  
  <div>  
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
      </telerik:RadScriptManager>  
 
    <!-- content start --> 
     
       <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
            <script type="text/javascript"
            function ShowEditForm(id, rowIndex) 
            { 
                var grid = $find("<%= grdUTEPagine.ClientID %>"); 
                 
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element(); 
                grid.get_masterTableView().selectItem(rowControl, true); 
                         
                window.radopen("EditUTEPagine.aspx?Id=" + id, "rwdUTEPagine"); 
                return false; 
            } 
            function ShowInsertForm() 
            { 
               window.radopen("EditUTEPagine.aspx", "rwdUTEPagine"); 
               return false; 
            } 
            function refreshGrid(arg) 
            { 
             if(!arg) 
             { 
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");             
                } 
                else 
                { 
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");             
                } 
            } 
            function RowDblClick(sender, eventArgs) 
            { 
             var param = eventArgs.getDataKeyValue("CODICELINGUA") + "|" + eventArgs.getDataKeyValue("CODICEFORM"); 
             window.radopen("EditUTEPagine.aspx?Id=" + param , "rwdUTEPagine"); 
            } 
            //help di pagina 
            function OnClientShow() {  
                var value = document.getElementById("lblHelpPagina");  
                alert(value); 
                $get("content").innerHTML = value.value; 
            }        
        function GetRadWindow() 
        { 
            var oWindow = null
            if (window.radWindow) oWindow = window.radWindow; 
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
                 
            return oWindow; 
        }                  
            </script> 
        </telerik:RadCodeBlock> 
         
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grdUTEPagine" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                 
                    <telerik:AjaxSetting AjaxControlID="grdUTEPagine"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grdUTEPagine" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            <!--- inizio controllo radwindow --> 
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Hay"
                <Windows> 
                    <telerik:RadWindow ID="rwdUTEPagine" runat="server" Behaviors="Close, Reload, Move" Title="Editing record" Height="570px" 
                        Width="550px" Left="150px" ReloadOnShow="True" ShowContentDuringLoad="False" Modal="True" InitialBehavior="None" Top="" /> 
                    <telerik:RadWindow runat="server" Title="WebBIO Zoom" Behaviors="Close, Reload, Move" Animation="FlyIn" ReloadOnShow="True"   
                        ID="rwdCodiceLingue" Modal="True" Width="500px" Height="600px" InitialBehavior="None" Left="" Top="" /> 
                    <telerik:RadWindow runat="server" Title="WebBIO Zoom" Behaviors="Close, Reload, Move" Animation="FlyIn" ReloadOnShow="True"   
                        ID="rwdCodiceForm" Modal="True" Width="500px" Height="600px" InitialBehavior="None" Left="" Top="" />                         
                    <telerik:RadWindow ID="rwdHelpPagina" runat="server" Behavior="Move,Close,Reload" OnClientShow="OnClientShow" 
                        OpenerElementID="btn" Modal="true" ShowContentDuringLoad="False" Animation="Slide" > 
                        <ContentTemplate> 
                            <div id="content" onload="loadContent1();" > 
                            </div> 
                        </ContentTemplate> 
                    </telerik:RadWindow>                 
                </Windows> 
            </telerik:RadWindowManager> 
            <!--- fine controllo radwindow ---> 
            <!-- pulsante help --> 
      <div style="position:static; left:900px; top:5px"
      <asp:ImageButton ImageUrl="~/_img/help.png" Width="24px" Height="24px" ToolTip="Help di Pagina"  
        ID="btn" runat="server" BorderColor="#257399" BorderStyle="Solid" BorderWidth="1px" /> 
      </div>               
            <table cellspacing="0"
                <tr> 
                    <th align="center" style="font-size:16px"><asp:Label ID="lblTitoloElenco" runat="server" Text="Elenco Utente Pagine" /></th
                </tr> 
                <tr> 
                    <td>        
                        <telerik:RadGrid                        
                            OnItemCreated="grdUTEPagine_ItemCreated" 
                            ID="grdUTEPagine" 
                            runat="server" 
                            PageSize="7" AllowPaging="True" 
                            AutoGenerateColumns="False"  
                            AllowAutomaticDeletes="True" 
                            AllowAutomaticInserts="true" 
                            AllowAutomaticUpdates="true" 
                            AllowSorting="True" 
                            AllowFilteringByColumn="True"                  
                            Width="97%" 
                            DataSourceID="objDS" Skin="Hay"
                            <PagerStyle AlwaysVisible="true" Mode="NumericPages" /> 
                            <MasterTableView 
                                DataKeyNames="CODICELINGUA,CODICEFORM" 
                                ClientDataKeyNames="CODICELINGUA,CODICEFORM" 
                                Width="100%" 
                                CommandItemDisplay="Top" 
                                DataSourceID="objDS"
                                <Columns> 
                                    <telerik:GridTemplateColumn UniqueName="EditRecord" AllowFiltering="False" Resizable="False">                            
                                        <ItemTemplate> 
                                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"
                                            <img src="_img/Edit.gif" alt="modifica" style="border:none" /></asp:HyperLink> 
                                        </ItemTemplate> 
                                        <HeaderStyle Width="24px" /> 
                                    </telerik:GridTemplateColumn> 
 
                                       <telerik:GridBoundColumn DataField="CODICELINGUA" HeaderText="Codice Lingua" SortExpression="CODICELINGUA"  
                                            UniqueName="colCODICELINGUA" FilterImageToolTip="Filtro per Codice Lingua">                                 
                                        </telerik:GridBoundColumn> 
                                         
                                       <telerik:GridBoundColumn DataField="DESCR" HeaderText="Nome Form" SortExpression="DESCR"  
                                            UniqueName="colDESCR" FilterImageToolTip="Filtro per CODICEFORM">                                 
                                        </telerik:GridBoundColumn>                               
 
                                       <telerik:GridBoundColumn DataField="DESCRIZIONE" HeaderText="Descrizione" SortExpression="DESCRIZIONE"  
                                            UniqueName="colDESCRIZIONE" FilterImageToolTip="Filtro per descrizione">  
                                            <HeaderStyle Width="310px" />  
                                        </telerik:GridBoundColumn>        
                                                  
                                        <telerik:GridBoundColumn DataField="DESCRIZIONEAIUTO" HeaderText="Descrizione AIUTO" SortExpression="DESCRIZIONEAIUTO"  
                                            UniqueName="colDESCRIZIONEAIUTO" FilterImageToolTip="Filtro per descrizione Aiuto">  
                                            <HeaderStyle Width="310px" />  
                                        </telerik:GridBoundColumn>                    
              
                                        <telerik:GridBoundColumn DataField="ANNOTAZIONI" HeaderText="Annotazioni" SortExpression="ANNOTAZIONI"  
                                            UniqueName="colANNOTAZIONI" FilterImageToolTip="Filtro per Annotazioni">  
                                            <HeaderStyle Width="310px" />  
                                        </telerik:GridBoundColumn>    
                                                                 
                                    <telerik:GridButtonColumn ConfirmText="Eliminare Utente Pagina?" ButtonType="ImageButton" ImageUrl="_img/Delete.gif" CommandName="Delete" Text="Elimina" UniqueName="colDelete"
                                        <HeaderStyle Width="20px" /> 
                                    </telerik:GridButtonColumn>  
 
                                </Columns> 
                                <CommandItemTemplate> 
                                    <href="#" onclick="return ShowInsertForm();"><img src="_img/Insert.gif" alt="nuovo record" style="border:none" />aggiungi</a> 
                                </CommandItemTemplate> 
                            </MasterTableView> 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="True" /> 
                                <ClientEvents OnRowDblClick="RowDblClick" /> 
                            </ClientSettings> 
                        </telerik:RadGrid> 
                    </td> 
                </tr> 
            <tr> 
                <td colspan="2"><asp:Label runat="server" ID="lblErrorMsg" Text=""></asp:Label></td
            </tr>  
            </table> 
    <asp:ObjectDataSource   
        ID="objDS"   
        runat="server"   
        SelectMethod="selectStandardLingue"       
        DeleteMethod="deleteUTEPagine"   
        SortParameterName="orderBy"  
        TypeName="GestioneLingue"  
        ConflictDetection="CompareAllValues"  
        OldValuesParameterFormatString="orig_{0}">  
        <SelectParameters>  
            <asp:ControlParameter ControlID="grdUTEPagine" Name="filterBy" PropertyName="MasterTableView.FilterExpression" Type="String" />  
            <asp:Parameter Name="NomeSP" DefaultValue="UTEPagine_Select" Type="String" /> 
        </SelectParameters>  
          
        <DeleteParameters>  
            <asp:Parameter Name="orig_CODICELINGUA" Type="String" />  
            <asp:Parameter Name="orig_CODICEFORM" Type="Int32" /> 
            <asp:Parameter Name="orig_DESCRIZIONE" Type="String" /> 
            <asp:Parameter Name="orig_DESCRIZIONEAIUTO" Type="String" /> 
            <asp:Parameter Name="orig_ANNOTAZIONI" Type="String" /> 
        </DeleteParameters>  
          
    </asp:ObjectDataSource>         
        <input type="hidden" id="lblHelpPagina" runat="server"/> 
  </div>  
</asp:Content>  

need help asap
i need to finish my project asap

thanks a lot

regards
webster

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Dec 2009, 09:13 AM
Hi Webster,

My first suggestion is to make sure that you are setting the onclick attribute to the EditLink hyperlink as shown in this demo.
Next, make sure that the JavaScript is actually called - just put an alert() in the ShowEditForm() function and see if it fires.

If this doesn't help, please open a support ticket and send us a sample project that reproduces your setup and the problem itself so we could investigate further.

Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Webster Velasco
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or