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

New install. Not very happy.

5 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 06 Sep 2012, 05:46 PM
RadGrid won't go into Edit mode -

I just installed RadControls for ASP.NET AJAX on my Windows XP 32bit development PC with VS 2010.

I opened a newly created website which had only a single GridView already on it and I selected Convert to Telerik web site from the Telerik menu that is now in VS.

The first thing I noticed was that the GridView no longer worked.  Clicking on Select or Edit no longer do anything.  So I dragged a RadGrid to the form, left all the default settings and selected the same DataSource the original GridView is using.  Now with the original GridView and the new RadGrid on the page, both grids display the same rows of data as one would expect. 

I enabled AllowAutomaticDeletes, AllowAutomaticInserts, and AllowAutomaticUpdates and set AutoGenerateEditColumn to True.

The original GridView still does not work.  Click "Select" and the row is not selected.  Click "Edit" and it does not go into Edit mode.
The new RadGrid also does not work.  There is an "Edit" link.  Clicking it does nothing.  The page flickers like there was a postback or something, but the row does not go into edit mode.

I started with the standard ToolkitScriptManager and then changed it to the RadScriptManager.  Neither worked.

What am I missing?

5 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 06 Sep 2012, 08:14 PM
I am SO MAD that I recommended this product to my company.
0
Radoslav
Telerik team
answered on 11 Sep 2012, 07:03 AM
Hello Mark,

Based on the provided information it is hard to say what is causing the described issue on your end. Could you please post your aspx markup code with the related code behind file. Thus we will be able to get more information about your scenario and provide you more to the point answer. Also at a meantime I am sending you a simple example of the RadGrid with enabled CRUD operations. Please check it out and let me know what differs in your case.

Looking forward for your reply.

Kind regards,
Radoslav
the Telerik team
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 their blog feed now.
0
Mark
Top achievements
Rank 1
answered on 11 Sep 2012, 03:01 PM
Hi Radoslav,

Thank you for the RadGrid example.  I'm sure that will help me with some configuration.

The "Attach file" option only allows image files:  .gif, .jpg, .jpeg and .png, so I renamed the .zip files with my .aspx markup, code behind and web.config files to .png.  Just remove the ".png" from the filename leaving the ".zip."

The examples I've attached do work now, but I had to create the site on a different computer that does not have Telerik RadControls installed.  The computer with the RadControls installed has the "Telerik" menu in Visual Studio now.  This computer will not create a working GridView or RadGrid.  The issues I described earlier apply to this computer.

I started over again, just now, with an empty web site folder.  I created a standard ASP.NET GridView and verified that I could Update records.  I added a RadGrid and attached the same SqlDataSource to it.  Now neither will Update records.  The ASP.NET GridView no longer works and the RadGrid does not Update records either.  Both do display the records from the database, but when I click "Edit" on both, the screen just blinks and the grids do not go into edit mode.

The attached files are from two different web sites.  The simplepage.zip[.png] is from the above web site before I blew it away and re-created it on the PC with RadControls installed.  The zip file contains the .aspx markup, code behind and web.config from the site as it was created on my PC that does not have RadControls installed.  After I created the page and ASP.NET GridView on the PC without RadControls installed I opened the web site on the PC that does have RadControls installed and I added the RadGrid.  This does work and Updates records just fine.

The other file, "productionpage.zip[.png]" is from an existing production web site that I just deleted the existing GridView and replaced it with a RadGrid.  This one works and Updates records fine as well. 

There are some differences in the web.config files and I don't think that skins are installed on the "productionpage" site.  I'm still trying to figure out the correct procedure to "upgrade" and existing site to a "Telerik site".

The documentation is so extensive that it's difficult to find a simple step by step procedure for installing the RadControls and either creating a new site or upgrading an existing site that already contains ASP.NET controls and GridViews and such, including AJAX Control Toolkit controls and Extensions.

Thanks,
David

[edit] Attachments for me do not allow .zip files.  Even after I renamed them to ".png" the system stripped them from my reply.  One was 3K and the other was 7K.  The size limit stated is 2M so the size wasn't the problem.

[edit 2] I started with an empty web site folder and created a new default.aspx page, added an ASP.NET GridView.  Tested the GridView Updates worked fine.  I converted the web site to a "Telerik site" which copied the .dlls into the bin folder and added the references to the web.config.  The GridView no longer worked, as I described above.  I manually removed the .dlls and deleted the Telerik lines from the web.config and the GridView worked again.

0
Mark
Top achievements
Rank 1
answered on 11 Sep 2012, 08:20 PM
See above ^^^

I found the cause of the grid not updating, or more accurately, not going into Edit Mode to be this line in the web.config:
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />

Changing it to this did not help.  I removed it and the updates worked.
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="managedHandler" />
0
Radoslav
Telerik team
answered on 13 Sep 2012, 08:18 AM
Hello Mark,

From the posted code snippet I saw that you have preCondition="managedHandler", however we have a known issue with this setting and the .net 4.0.
When RadCompression is enabled and you are using .NET 4.0, event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode. This problem is caused by a breaking change in .NET 4.0. To workaround it one can set preCondition="managedHandler" for the RadCompression module. You may also need to remove the runAllManagedModulesForAllRequests setting from your web.config if you have it (or set it to false).
More information you could find here:
http://www.telerik.com/help/aspnet-ajax/compression.html (Known issues section)
Also I am sending you the modified version of the example which contains changed web.config file with enabled RadCompression. Please check it out and let me know if it helps you.

Additionally to send us a project you need to open a formal support ticket from your Telerik account and attach a ZIP file there.

Looking forward for your reply.

Regards,
Radoslav
the Telerik team
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 their blog feed now.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or