Popup Edit Form not Shown

3 posts, 1 answers
  1. Dimitrios
    Dimitrios avatar
    45 posts
    Member since:
    Jun 2014

    Posted 25 Jun 2015 Link to this post

    Good day...

    I would appreciate if someone take a look at my code below and tell me (or give me some direction to search for) the reason of the popup edit form not shown.

     

    PLEASE do not direct me to a Telerik demo or some other link. I have spent enough time looking and studying them all (I believe).

     

    If someone does look at my code, let me help by directing you to focus on the grdManuf in the GenUtils.aspx

    If I switch back the MasterTableView.EditMode from <PopUp> to <EditForms>, everything is working fine and I can see the form, edit etc.

    I have also attached a small screen file to show you what happens when the user hits the edit icon (third row), while in the PopUp EditMode.

     

    Again, I will appreciate if anyone DOES look my code and tell me my error.

    Thanks 

     

    GenUtils.aspx

    <%@ Page Title="GenUtils" Language="VB" MasterPageFile="~/MasterPage.master"
      AutoEventWireup="false" EnableEventValidation="false" CodeFile="GenUtils.aspx.vb"
      Inherits="Utilities_GenUtils" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="PageTitle">
      <h1><%: Title %></h1>
    </asp:Content>

    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    </asp:Content>


    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

      <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="false" />
      <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">

        <script type="text/javascript">

          function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
          }

          function onPopUpShowing(sender, args) {
            args.get_popUp().className += " popUpEditForm";
          }
        </script>

      </telerik:RadCodeBlock>

      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="grdManuf">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdManuf" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
         </AjaxSettings>
      </telerik:RadAjaxManager>

      <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
      </telerik:RadAjaxLoadingPanel>

      <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecorationZoneID="divMain"
        DecoratedControls="All" EnableRoundedCorners="false" />

      <div id="divMain" style="position: relative; top: 0px;">

        <telerik:RadWindowManager ID="RadWindowManager2" runat="server"
          EnableShadow="true">
        </telerik:RadWindowManager>

        <telerik:RadNotification ID="n2" runat="server" Text="" Position="Center"
          AutoCloseDelay="5000" Width="450" Title="" KeepOnMouseOver="true"
          EnableRoundedCorners="true" Animation="Resize" ContentIcon="warning"
          AnimationDuration="700" TitleIcon="none" Font-Size="12px" Font-Bold="True"
          ShowCloseButton ="true">

        </telerik:RadNotification>


        <div id="divMainBottom" style="position: relative; top: 10px;height: 400px">

          <div id="divManuf" runat="server" style="border: 1px solid #0000FF;
            display: inline-block; margin-right: 5px; vertical-align: top; width:522px;
            background-color: #F4FFDD;">

            <div id="div5" style="position: relative; left: 10px; top: 2px;">

              <asp:Table ID="Table9" runat="server" Style="solid,thick; width:502px">
                <asp:TableRow Height="22px">

                  <asp:TableCell Width="12px">
                  </asp:TableCell>

                  <asp:TableCell HorizontalAlign="Left"  Width="226px">
                    <asp:TextBox ID="txtFndManuf" runat="server"
                      Width="218px" AutoPostBack="True"
                      OnTextChanged="txtFndManuf_TextChanged">
                    </asp:TextBox>
                  </asp:TableCell>

                  <asp:TableCell HorizontalAlign="Center"  Width="128px">
                    <asp:Label ID="Label4" runat="server" Text="Manufacturers"
                      CssClass="SectionTitle">
                    </asp:Label>
                  </asp:TableCell>

                  <asp:TableCell HorizontalAlign="Left"  Width="136px">
                    <asp:TextBox ID="txtFndPho" runat="server"
                      Width="118px" AutoPostBack="True"
                      OnTextChanged="txtFndPho_TextChanged">
                    </asp:TextBox>
                  </asp:TableCell>

                </asp:TableRow>
              </asp:Table>

              <telerik:RadGrid ID="grdManuf" runat="server"
                Width="502px" 
                AllowPaging="True" PageSize="14"
                PagerStyle-PageSizeControlType="None"
                PagerStyle-Mode="NextPrev" PagerStyle-ShowPagerText="false"
                PagerStyle-PageButtonCount="14" AutoGenerateColumns="False"
                OnUpdateCommand="grdManuf_UpdateCommand"
                OnItemDataBound="grdManuf_ItemDataBound"
                OnNeedDataSource="grdManuf_NeedDataSource"
                AllowAutomaticInserts="false"
                ShowStatusBar="false" Skin="Vista">

                <MasterTableView Width="100%" CommandItemDisplay="none"
                  DataKeyNames="Man_ID" EditMode="PopUp" 
                  CommandItemSettings-AddNewRecordText="" AllowSorting="False"
                  CommandItemSettings-ShowRefreshButton="False"
                  CommandItemSettings-AddNewRecordImageUrl=""
                  CommandItemStyle-HorizontalAlign="center"
                  CommandItemStyle-BorderStyle="None">

                  <EditFormSettings UserControlName="Manuf.ascx"
                    EditFormType="WebUserControl">
                    <EditColumn ButtonType="ImageButton" />
                    <PopUpSettings Modal="true" ZIndex="100010" />
                    <EditColumn UniqueName="EditCommandColumn">
                        </EditColumn>
                  </EditFormSettings>

                  <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton"
                      UniqueName="EditCommandColumn" ItemStyle-BorderStyle="None"
                      ItemStyle-Width="14px" EditImageUrl="" EditText="Manage Manufacturer"
                      HeaderStyle-Width="14px">
                    </telerik:GridEditCommandColumn>

                    <telerik:GridBoundColumn DataField="Man_Name"
                      HeaderText="Manufacturer Name" UniqueName="Man_Name"
                      ItemStyle-HorizontalAlign="Left"
                      HeaderStyle-HorizontalAlign="Left"
                      ReadOnly="True" HeaderStyle-Width="220px"
                      ItemStyle-Width="220px">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="Addr_Str1"
                      HeaderText="Street Address" UniqueName="Addr_Str1"
                      ItemStyle-HorizontalAlign="Left"
                      HeaderStyle-HorizontalAlign="Left"
                      ReadOnly="True" HeaderStyle-Width="130px"
                      ItemStyle-Width="130px">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="Man_Phone1"
                      HeaderText="Phone" UniqueName="Man_Phone1"
                      ItemStyle-HorizontalAlign="Left"
                      HeaderStyle-HorizontalAlign="Left"
                      ReadOnly="True" HeaderStyle-Width="120px"
                      ItemStyle-Width="120px">
                    </telerik:GridBoundColumn>

                    <telerik:GridButtonColumn ButtonType="ImageButton"
                      CommandName="Delete" UniqueName="DeleteCommandColumn"
                      HeaderStyle-Width="18px" ItemStyle-Width="18px"
                      Text="Delete Payment">
                    </telerik:GridButtonColumn>

                  </Columns>
                </MasterTableView>

                <ClientSettings Selecting-AllowRowSelect="true" EnableRowHoverStyle="true">
                      <Scrolling AllowScroll="False"></Scrolling>
                      <ClientEvents OnRowDblClick="RowDblClick"
                        OnRowClick="RowClick" OnPopUpShowing="PopUpShowing"/>
                </ClientSettings>

              </telerik:RadGrid>

              <asp:Table ID="Table10" runat="server" Width="502px">
                <asp:TableRow Style="height: 20px !important;">
                  <asp:TableCell>
                    <asp:Button ID="btnAddManuf" runat="server"
                      AlternateText="Add Manufacturer"
                      Enabled="false" CssClass="addlongbutton"
                      ToolTip="Add New Manufacturer" />
                  </asp:TableCell>
                </asp:TableRow>
              </asp:Table>
            </div>
          </div>
      </div>
      </div>

    </asp:Content>

     

     

    MasterPage.master

    <%@ Master Language="vb" AutoEventWireup="True" CodeFile="~/MasterPage.master.vb" Inherits="MasterPage" %>

    <!DOCTYPE html>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
      <meta charset="utf-8" />
      <title><%: Page.Title %></title>
      <link href="~/App_Themes/Images/favicon.ico" rel="shortcut icon" type="App_Themes/Images/favicon.ico" />
      <asp:ContentPlaceHolder ID="myPlaceholder" runat="server">
        <link href="<% =ResolveClientUrl("~/StyleSheet.css")%>" rel="stylesheet"
          type="text/css" />
      </asp:ContentPlaceHolder>
      <asp:ContentPlaceHolder ID="head" runat="server">
      </asp:ContentPlaceHolder>

      <script src="//code.jquery.com/jquery-1.10.2.js"></script>

    </head>

    <body>
      <form id="Form1" runat="server" defaultbutton="HiddenButtonToDisableEnterKey">
        <%--<header>--%>

      <telerik:RadScriptManager ID="RadScriptManagerMaster"
        EnableScriptCombine="false" EnablePageMethods="true" runat="server">
        <Services>
          <asp:ServiceReference Path="~/SessionAccessService.asmx" />
        </Services>
      </telerik:RadScriptManager>

        <asp:Button ID="HiddenButtonToDisableEnterKey" runat="server"
          Text="Button" Style="display: none;" OnClientClick="return false;" />

        <div class="content-wrapper">
          <div class="float-left">
            <p class="logo">
              <a id="logo" runat="server" href="~/Home.aspx">
                <%--<img src="App_Themes/Images/logo.png" alt="logo.png" /></a>--%>
                <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Images/logo.png" AlternateText="Logo" />
              </a>
            </p>
          </div>
          <section class="featured">
            <%--<h3>
                        <asp:Literal runat="server" ID="PageTitleLiteral" /></h3>--%>
            <div class="site-title">
              <asp:ContentPlaceHolder runat="server" ID="PageTitle" />
            </div>
            <div class="NavMenu">
              <%--<asp:ContentPlaceHolder ID="NavMenu" runat="server">--%>
              <telerik:RadMenu ID="RadtopMenu" runat="server" Skin="Silk" Width="100%" Height="52px">
                <Items>
                  <telerik:RadMenuItem runat="server" NavigateUrl="~/Home.aspx" Text="Home">
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" Text="Stock">
                    <Items>
                      <telerik:RadMenuItem runat="server" Text="Items">
                        <Items>
                          <telerik:RadMenuItem runat="server" Text="Details" NavigateUrl="~/Items_MainForm.aspx">
                          </telerik:RadMenuItem>
                          <telerik:RadMenuItem runat="server" NavigateUrl="~/ProductStatus/Asmf.aspx" Text="Product Status">
                          </telerik:RadMenuItem>
                        </Items>
                      </telerik:RadMenuItem>
                      <telerik:RadMenuItem runat="server" Text="Purchasing">
                        <Items>
                          <telerik:RadMenuItem runat="server" Text="Tenders" NavigateUrl="~/Purchasing_Tenders.aspx">
                          </telerik:RadMenuItem>
                          <telerik:RadMenuItem runat="server" NavigateUrl="~/Purchasing_MainForm.aspx" Text="Orders">
                          </telerik:RadMenuItem>
                        </Items>
                      </telerik:RadMenuItem>
                    </Items>
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" Text="Production">
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" Text="Packing">
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" NavigateUrl="~/Engineering/Operation.aspx" Text="Engineering">
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" Text="Utilities">
                    <Items>

                      <telerik:RadMenuItem runat="server" Text="Stock Utilities">
                      </telerik:RadMenuItem>

                      <telerik:RadMenuItem runat="server" Text="Production Utilities">
                      </telerik:RadMenuItem>

                      <telerik:RadMenuItem runat="server" Text="Packing Utilities">
                        <Items>
                          <telerik:RadMenuItem runat="server" Text="Packing Material Size">
                          </telerik:RadMenuItem>
                        </Items>
                      </telerik:RadMenuItem>

                      <telerik:RadMenuItem runat="server" Text="General" NavigateUrl="~/Utilities/GenUtils.aspx">
                      </telerik:RadMenuItem>

                      <telerik:RadMenuItem runat="server" Text="Security" NavigateUrl="~/SecurCredentials.aspx">
                      </telerik:RadMenuItem>

                    </Items>
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" NavigateUrl="~/Migration.aspx" Text="Migration">
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" NavigateUrl="~/Helpdesk.aspx" Text="Helpdesk">
                  </telerik:RadMenuItem>
                  <%--<telerik:RadMenuItem runat="server" NavigateUrl="~/Asmf.aspx" Text="Testing Form">
                                </telerik:RadMenuItem>--%>
                </Items>
              </telerik:RadMenu>
              <%--</asp:ContentPlaceHolder>--%>

              <div class="breadcrumb">
                <p>
                  <strong>You are here:</strong>
                  <asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em" PathSeparator=" > ">
                    <CurrentNodeStyle ForeColor="#333333" />
                    <NodeStyle Font-Bold="True" ForeColor="#FFFFFF" />
                    <PathSeparatorStyle Font-Bold="True" ForeColor="#333333" />
                    <RootNodeStyle Font-Bold="True" ForeColor="#FFFFFF" />
                  </asp:SiteMapPath>
                </p>
              </div>
            </div>

              <div class="username">
                <asp:Label ID="usrtxt" Text="" runat="server"
                  Style="font-weight: bold; font-size: 11px; font-family: Arial;">
                </asp:Label>
            </div>


          </section>

        </div>

        <div id="body">
          <div class="main-content">
            <asp:ContentPlaceHolder ID="MainContent" runat="server">
            </asp:ContentPlaceHolder>
          </div>
        </div>

        <footer>
          <div class="content-wrapper">
            <div class="float-left">
              <p style="font-size: x-small; font-family: Arial, Helvetica, sans-serif">
                &copy; <%: DateTime.Now.Year %> - Developed by: Remedica's I.T. Department
                            (2014)
              </p>
            </div>
          </div>
        </footer>

      </form>
    </body>
    </html>

    web.config

    <?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
      <connectionStrings>
        <add name="NewERPConnectionString" connectionString="Data Source=sql;Initial Catalog=NEW_ERP;User ID=sa;Password=ada;MultipleActiveResultSets=True;Max Pool Size=1000;Min Pool Size=5;" providerName="System.Data.SqlClient" />
        <add name="ProdStatusConnectionString" connectionString="Data Source=sql;Initial Catalog=RemedProductStatus;User ID=sa;Password=ada;Max Pool Size=1000;Min Pool Size=5;" providerName="System.Data.SqlClient" />
        <add name="ADAStockConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=SQL;Initial Catalog=indat666;Integrated Security=False;User Id=sa;Password=ada;MultipleActiveResultSets=True;Max Pool Size=1000;Min Pool Size=5;" />
        <add name="RemedProdSchedConnectionString" connectionString="Data Source=sql;Initial Catalog=Remed_Prod_Sched;User ID=sa;Password=ada;Max Pool Size=1000;Min Pool Size=5;" providerName="System.Data.SqlClient" />
      </connectionStrings>
      <appSettings>
        <add key="CurrentAccDatabase" value="Acc2014" />
        <add key="CurrentStockDatabase" value="indat666" />
        <add key="StockDatabase" value="indatar" />
        <add key="ProdStatusDatabase" value="RemedProductStatus" />
        <add key="PrAlumItemCategID" value="71" />
        <add key="UnPrAlumItemCategID" value="72" />
        <add key="LDAPdomain" value="DC=remed,DC=local" />
        <add key="LDAPpath" value="OU=NewERP,OU=GLOBAL,OU=Security Groups" />
      </appSettings>
      <system.web>
        <sessionState mode="InProc" cookieless="false" timeout="120" />
        <pages>
          <controls>
            <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
          </controls>
        </pages>
        <customErrors mode="Off" />
        <compilation debug="true" strict="false" explicit="true" targetFramework="4.5">
          <assemblies>
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.DirectoryServices.AccountManagement, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.DirectoryServices.AccountManagement, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          </assemblies>
        </compilation>
        <httpRuntime targetFramework="2.0" />
        <httpHandlers>
          <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
          <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        
        </httpHandlers>

        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
        </httpModules>

        <identity impersonate="true" />
       
        </system.web>
      <system.webServer>

        <security>
          <authentication>
            <anonymousAuthentication enabled="false" />
            <windowsAuthentication enabled="true" />
          </authentication>
        </security>    
        
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="RadUploadModule" />
          <remove name="RadCompression" />
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
        </modules>
        <directoryBrowse enabled="true" />
        <defaultDocument>
          <files>
            <clear />
            <add value="Purchasing_MainForm.aspx" />
          </files>
        </defaultDocument>
        <handlers>
          <remove name="ChartImage_axd" />
          <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
          <remove name="Telerik_Web_UI_DialogHandler_aspx" />
          <remove name="Telerik_RadUploadProgressHandler_ashx" />
          <remove name="Telerik_Web_UI_WebResource_axd" />
          <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
          <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
          <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
          <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
        </handlers>
      </system.webServer>
    </configuration>

     

     

     

  2. Answer
    Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 29 Jun 2015 Link to this post

    Hi Dimitrios,

    I examined the provided code but I am afraid that without running the code it will be hard to pinpoint the exact reason for that behavior. Nevertheless could you please check for any client side exception which might prevent opening the popup window? Also I noticed that you are using an AJAX so could you please disable it and check for a server exception as well.

    Regards,
    Kostadin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Dimitrios
    Dimitrios avatar
    45 posts
    Member since:
    Jun 2014

    Posted 02 Jul 2015 in reply to Kostadin Link to this post

    Thanks man, I found the problem.

    A java function was not found and, unfortunately, I was not getting any relative message! 

    It works fine now...

Back to Top