Cannot get RadGrid edit form to open as a popup

17 posts, 1 answers
  1. ToltingColtAcres
    ToltingColtAcres avatar
    83 posts
    Member since:
    Nov 2010

    Posted 25 Oct 2013 Link to this post

    Not sure what I'm doing wrong here... Tried to adapt example from Grid demos to my app, but not having much success here. Clicking Edit opens the edit form not as a pop-up, but as an edit form when I test within Visual Studio. If I push the app to a web site, it works as expected. However, that makes it exceedingly difficult to debug new application development. Is there a way I can debug this type of app within the visual studio environment, or am I forced to set up a test web server and constantly push changes there for testing?

    My aspx page:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="MyWebApp.Admin.Companies.List" %>
    <%@ Register src="NavigationMenu.ascx" tagname="NavigationMenu" tagprefix="uc1" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
        <head runat="server">
            <title></title>
        </head>
        <body>
            <form id="form2" runat="server">
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadGrid_Companies">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadGrid_Companies" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
      
                <asp:SqlDataSource ID="SqlDataSource_Companies" runat="server" ConnectionString="<%$ ConnectionStrings:MyCS %>" SelectCommand="SELECT * FROM Companies ORDER BY Name ASC" />
     
                <div>
                    <uc1:NavigationMenu ID="CompanyMenu" runat="server" />
                    <br />
                </div>
                <div>
                    <telerik:RadGrid ID="RadGrid_Companies" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="SqlDataSource_Companies" GridLines="None" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowCustomPaging="True" ShowStatusBar="true">
                        <MasterTableView DataKeyNames="Company_Key" DataSourceID="SqlDataSource_Companies" AllowMultiColumnSorting="True" EditMode="PopUp" commanditemdisplay="Bottom">
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                                <telerik:GridBoundColumn DataField="CompanyName" FilterControlAltText="Filter CompanyName column" HeaderText="Company Name" SortExpression="CompanyName" UniqueName="CompanyName" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" />
                            </Columns>
                            <EditFormSettings UserControlName="EditPopup.ascx" EditFormType="WebUserControl" PopUpSettings-Height="800px" PopUpSettings-Width="600px" PopUpSettings-ScrollBars="Auto" PopUpSettings-Modal="true" EditColumn-UniqueName="EditCommandColumn1" />
                        </MasterTableView>
                    </telerik:RadGrid>
                </div>
            </form>
        </body>
    </html>

    The EditPopup.ascx page:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditPopup.ascx.cs" Inherits="MyWebApp.Admin.Companies.EditPopup" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <table ID="table1" width="100%">
        <tr>
            <td>
                Company Name:
            </td>
            <td>
                <telerik:RadTextBox ID="RadTextBox_CompanyName" runat="server" width="100%" Text='<%# DataBinder.Eval( Container, "DataItem.Name"  ) %>' />
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' />
                <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>'/>
                  
                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" />
            </td>
        </tr>
    </table>

  2. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 30 Oct 2013 Link to this post

    Hi Michael,

    Thank you for contacting us.

    I was not able to replicate the issue on my side. I prepared a small sample based on your code and attached it to this thread. Could you please give it a try and let me know how it differs from your real setup?

    I am looking forward to your reply.

    Regards,
    Kostadin
    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
  4. ToltingColtAcres
    ToltingColtAcres avatar
    83 posts
    Member since:
    Nov 2010

    Posted 30 Oct 2013 Link to this post

    No difference.

    The issue appears to be limited to the Visual Studio development environment. If I publish the application to an IIS server (not on my development box) the same code will result in a popup form.

    So, obviously something is not "configured" correctly within the VS development environment, which launches IIS Express to debug the application.

    It makes development difficult, because I cannot "test" any changes I make to my code without publishing them to a production server at the moment... I suppose what I will need to do is set up a "test" web site on a regular IIS server, publish there first, test, and then once everything is working, push to the production web server.
  5. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 04 Nov 2013 Link to this post

    Hi Michael,

    I would suggest you to check some of the provided below options:
    • Make sure that you have display the page in the same browser when you are using development environment and when you are publishing the application to an IIS server.
    • Make sure that the application pool runs the same version of .NET as the one of the Visual Studio environment.
    • If you are using a compression, please try the sample with disabled one.

    Could you please tell us the exact version of your Visual Studio in order to try replicating the issue with the same version on our side?


    Regards,
    Kostadin
    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.
  6. Kimage
    Kimage avatar
    2 posts
    Member since:
    Oct 2012

    Posted 27 Nov 2013 Link to this post

    Any news on this? I am experiencing the same problem. All code worked in VS2012 with Version 2013_2_717 .net 4.0

    Upgrading to VS2013 caused this issue.

    I did an upgrade to ASP.NET AJAX 2013_2_717 .net 4.5 but no result.

    This strange behaviour is only on my development machine (WIN8.1 - VS2013- IIS express).

    When publishing to a test server (IIS7.5) the editform is correctly loaded as popup.

    It is not easy to debug because dropdownboxes are not clickable either...

    I think this is a setting/configuration with the local environment. (VS/IISExpress).



  7. ToltingColtAcres
    ToltingColtAcres avatar
    83 posts
    Member since:
    Nov 2010

    Posted 27 Nov 2013 Link to this post

    Still have the same problem, along with numerous javascript errors, and yes, I am using VS2013.
  8. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 02 Dec 2013 Link to this post

    Hello Michael and Kim,

    Note that VS2013 is still not fully supported and some of the feature might not work correctly. Nevertheless this issue was fixed in the Q3 2013 SP1. I hope that Q1 2014 will provide a full support of VS2013.

    Regards,
    Kostadin
    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.
  9. Kimage
    Kimage avatar
    2 posts
    Member since:
    Oct 2012

    Posted 02 Dec 2013 Link to this post

    When I experienced this problem I upgraded the telerik assemblies to version 2013.3.1114.40.

    No result, still the same problem, so I kept my current version to avoid other conflicts...



    I will give it a try when 2014Q1 is released...


  10. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 04 Dec 2013 Link to this post

    Hi Kim,

    Could you please try the example from my first reply and let me know how it behaves on your end? Please try it with 2013 Q3 and also with SP1 2013 Q3 and let me know whether you have experience any differences between both version? I would appreaciate if you could provide images of the grid when is running on your development machine and on the test server.

    I am looking forward to your reply.

    Regards,
    Kostadin
    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.
  11. Stormdude
    Stormdude avatar
    2 posts
    Member since:
    Jul 2009

    Posted 05 Dec 2013 Link to this post

    I'm having the same issue with 2013.3.1114.40, regardless if I'm using the IDE or the published site.  The error that is getting spit out is:

    Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


    Thread information: 
        Thread ID: 8 
        Thread account name: IIS APPPOOL\PartsMatrix 
        Is impersonating: False 
        Stack trace:    at System.Object.GetType()
       at Telerik.Web.UI.RadCompression.Compress(HttpApplication application)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Commenting out 
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
     in Web.config allows the project to run correctly.

    It seems like RadCompression causes a lot of issues when the Telerik controls are updated...
  12. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 10 Dec 2013 Link to this post

    Hi,

    I am afraid that this is quite common exception and it will be hard to find its cause without runnable sample. Nevertheless a possible reason for the error could be the enabled dynamic expression on the IIS server and enabled the RadCompression into the Web.config. Please make sure that you did not enabled both compressions simultaneously. If you are still experience the issue I would ask you to provide a small runnable sample in order to observe the cause for the problem further.

    Regards,
    Kostadin
    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.
  13. ToltingColtAcres
    ToltingColtAcres avatar
    83 posts
    Member since:
    Nov 2010

    Posted 10 Dec 2013 Link to this post

    Upgrading to 1114.45 seemed to address my original problem. on to the next problem :)
  14. Answer
    Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 13 Dec 2013 Link to this post

    Hi Michael,

    Could you please explain which issue was resolved and which one you are still facing?

    Regards,
    Kostadin
    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.
  15. ToltingColtAcres
    ToltingColtAcres avatar
    83 posts
    Member since:
    Nov 2010

    Posted 13 Dec 2013 Link to this post

    The original problem in Post #1 of this thread.
  16. Le
    Le avatar
    2 posts
    Member since:
    May 2011

    Posted 23 Jul 2014 Link to this post

    Hi,

    I am using Telerik 2014 Q2 trial and facing exactly the same issue as in this post. Could you please give me any suggestions or help?

    I don't attach my code here because Code Formatting function shows me an error page.

    Thanks in advance.
  17. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 28 Jul 2014 Link to this post

    Hello Le,

    Could you please let me know whether you are using a RadCompression? Additionally please try the suggestions provided in my previous replies and let me know what is the reason for that error?

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  18. Le
    Le avatar
    2 posts
    Member since:
    May 2011

    Posted 29 Jul 2014 in reply to Kostadin Link to this post

    Hi Kostadin,

    I'm not using RadCompression. Thanks for your reply. The issue is still there but we have decided to use Telerik MVC instead of Telerik ASP.NET Ajax.

    Anyway, thank you.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017