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

Cannot get RadGrid edit form to open as a popup

16 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
ToltingColtAcres asked on 25 Oct 2013, 03:07 PM
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>

16 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 30 Oct 2013, 09:26 AM
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.
0
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
answered on 30 Oct 2013, 01:35 PM
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.
0
Kostadin
Telerik team
answered on 04 Nov 2013, 09:07 AM
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.
0
Kimage
Top achievements
Rank 1
answered on 27 Nov 2013, 10:24 AM

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).



0
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
answered on 27 Nov 2013, 01:38 PM
Still have the same problem, along with numerous javascript errors, and yes, I am using VS2013.
0
Kostadin
Telerik team
answered on 02 Dec 2013, 08:29 AM
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.
0
Kimage
Top achievements
Rank 1
answered on 02 Dec 2013, 08:57 AM

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...


0
Kostadin
Telerik team
answered on 04 Dec 2013, 02:45 PM
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.
0
Stormdude
Top achievements
Rank 1
answered on 05 Dec 2013, 10:32 PM
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...
0
Kostadin
Telerik team
answered on 10 Dec 2013, 03:00 PM
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.
0
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
answered on 10 Dec 2013, 04:21 PM
Upgrading to 1114.45 seemed to address my original problem. on to the next problem :)
0
Accepted
Kostadin
Telerik team
answered on 13 Dec 2013, 02:20 PM
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.
0
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
answered on 13 Dec 2013, 02:55 PM
The original problem in Post #1 of this thread.
0
Le
Top achievements
Rank 1
answered on 23 Jul 2014, 09:08 AM
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.
0
Kostadin
Telerik team
answered on 28 Jul 2014, 06:43 AM
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.

 
0
Le
Top achievements
Rank 1
answered on 29 Jul 2014, 10:06 AM
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.
Tags
Grid
Asked by
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
Answers by
Kostadin
Telerik team
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
Kimage
Top achievements
Rank 1
Stormdude
Top achievements
Rank 1
Le
Top achievements
Rank 1
Share this question
or