I have downloaded and converted my project from Q1 2008 to ASP.NET AJAX 2008, utlizing the Telerik.Web.UI for all the controls on the page. The page works correctly in my local development area using the new controls. However when I promote this to SharePoint 2007 the post-backs are true post-backs and not AJAX (the LoadingPanel will not render and the screen fully refreshes). For some reason SharePoint will not recognize the AJAX call.
Here is what I have done to get the Telerik.Web.UI working.
Local Dev Environment:
- Install AJAX 2.0 Extensions
- Upgrade all controls from "rad:" to "telerik:"
- I had to modify some of the namespaces as well.
- Insert the RadScriptManager
- Remove the using Telerik.WebControls and replace with using Telerik.Web.UI
- Added the following httpHandler to the local web.config file:
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
At this point I was able to get the page up and running and working with the AjaxManager in my local development environment (No SharePoint).
I then installed the MSI on our development SharePoint Server and copied the Telerik.Web.UI.dll into the bin directory of the portal directory.
After many attempts I was able to bring the page up in SharePoint without the page rendering issues as seen with Q1 2008. In order to do this I had to modify the SharePoint 2007 web.config quite a bit.
The page renders correctly, however the AjaxManager does not seem to be firing... do you have any ideas on what I may need to set in SharePoint or in the AjaxManager to get this working?
Here are the httpHandlers from the web.config in SharePoint.
<
httpHandlers>
<
remove verb="GET,HEAD,POST" path="*" />
<
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<
add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<
add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<
add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<
add verb="*" path="_vti_bin/ReportServer" type="Microsoft.ReportingServices.SharePoint.Soap.RSProxyHttpHandler, RSSharePointSoapProxy, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
<
add verb="*" path="Reserved.ReportViewerWebPart.axd" type="Microsoft.ReportingServices.SharePoint.UI.WebParts.WebPartHttpHandler, Microsoft.ReportingServices.SharePoint.UI.WebParts, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</
httpHandlers>