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

Ajax Controls not working in SharePoint

5 Answers 230 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raghuraman Venkataraman
Top achievements
Rank 1
Raghuraman Venkataraman asked on 24 May 2010, 03:31 PM
Hello All,

            I am developing a web part in SharePoint using wspbuilder project. I have MOSS 2007 installed in my machine. I am having an aspx page in my project which in a nutshell a setting page for controlling the web part. I have used telerik's controls like RadDropDown, RadFormDecorator,etc in that page.

          I know that in order to make the ajax controls work in sharepoint, we need to do some tweaks in the web.config of the web application. I have achieved that programmatically in the receiver class of my SharePoint Feature. So, the appropriate entries would be added in the web.config of my web application once I activate the feature in my site.

          Nevertheless, the ajax controls which are used both in my web part and the aspx page are functioning in an undesirable manner. The drop down is not dropping down at all if I click the down arrow and also the Skin which I have applied for the entire page using 'RadFormDecorator' isn't getting applied at all. Even I have given the script manager at the top of my form tag. I am not able to perceive where am going wrong. Any help rendered would be of great use.

5 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 25 May 2010, 11:46 AM
Hi,

Make sure that your feature receiver class makes all the needed modifications to the web.config file. You can review the changes in our online documentation - if you are using the .NET 2.0 or the .NET 3.5 version of our controls. I assume that a missing <httpHandler> definition for the ajax scripts is preventing them from loading in the browser, which is why none of the controls on the page work.

Kind regards,
Lini
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Raghuraman Venkataraman
Top achievements
Rank 1
answered on 26 May 2010, 08:13 AM
@Admin

       Thank you very much for your kind response. I checked all the tags to be added in the web.config. Everything is looking fine.

       For cross checking purpose, I created a brand new web application with one root site and added all the entries manually into the web-config by copy-pasting from the online documentation that telerik has provided. But, still the outcome is the same for me.

    If I do a sample and run it in my localhost, its working absolutely fine. Even I have added the system.web.extensions registration at the top of my aspx page. I don't see any change. This problem is really strange and its really hard for me to trace the root cause of this issue.
0
Lini
Telerik team
answered on 31 May 2010, 08:50 AM
Hi,

If your SharePoint farm has multiple WFE (web front-end) servers, then you should deploy the asp.net ajax extensions and web.config modifications to all of the servers. Compare the web.config files after you activate your feature to make sure everything is OK.

You can also try using Fiddler for IE or Firebug for Firefox and check if there are problems with any web resource requests (WebResource.axd, ScriptResource.axd, Telerik.Web.UI.WebResource.axd). The HTTP errors (500, 404) and the server response might give you more information about the issue.


Regards,
Lini
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Marcel
Top achievements
Rank 1
answered on 03 Feb 2011, 05:21 PM
 

I had the same issue. In SharePoint, my telerik textbox would not retain posted back values and my combobox would not dropdown. (All worked OK outside of SharePoint in a separate web app). My issue was the registration of HttpHandler for WebResource.axd. I was getting 401 errors in my IIS log. It seems that in the SharePoint web.config

Insufficient:

<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

Works:

<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

0
Craig
Top achievements
Rank 1
answered on 10 Aug 2011, 09:45 AM
I know this is a little late but just stumbled across this fix.  Brilliant worked for me, I've been pulling my hair out.  After 3 years on SharePoint I hate it, use umbraco instead works like a charm.
Tags
General Discussions
Asked by
Raghuraman Venkataraman
Top achievements
Rank 1
Answers by
Lini
Telerik team
Raghuraman Venkataraman
Top achievements
Rank 1
Marcel
Top achievements
Rank 1
Craig
Top achievements
Rank 1
Share this question
or