Contact Sales: +1-888-365-2779
Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Ajax > radajaxmanager sharepoint 2007 bug
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered radajaxmanager sharepoint 2007 bug

Feed from this thread
  • neil barkhina avatar

    Posted on Mar 16, 2007 (permalink)

    Hi,

    I am using the latest trial version of the rad ajax controls for .net 2.0. Whenevern I simplay drop a radajaxmanager onto a custom webpart in moss 2007 and have the enableajax property set to true, certain things on the screen don't load correctly. For example, it sais Welcome Administrator at the very top of the screen instead of in a moss drop down. I included a screenshot, but you have to try it for yourselves. There may be a conflict between the telerik's ajax and MOSS's ajax. Though the radajaxmananger does function correctly, that welcome administrator at the beginning of the page is very distracting. Will there be a fix to this in the future?

    Screenshot

    Thank you,

    Neil

  • Kevin Master avatar

    Posted on Mar 17, 2007 (permalink)

    Did the solution proposed here help you in your case (e.g. using AjaxPanels instead of AjaxManager)?

    http://www.telerik.com/community/forums/thread/b311D-tkaeb.aspx

    As far as I know, both AjaxManager and RadAjaxPanel share the same callback logic...

  • neil barkhina avatar

    Posted on Mar 17, 2007 (permalink)

    Yes, thank you for the advice about using radajaxpanels. It definately helped me. However, It would be nice to be able to use RadAjaxManager because it would save me from making additional requests to the server which is whats happening now with the ResponseScripts method. It would also make coding easier. I am not sure how RadAjaxManager works, perhaps it is initiallizing something when the page first loads that is conflicting with MOSS. All I know is that with RadAjaxPanels I don't get that bug.

    Thanks,

    Neil

  • TerraForum avatar

    Posted on Nov 1, 2007 (permalink)

    Hi Telerik,

    I really would like to know if there is a fix or workaround for using RadAjaxManager in MOSS WebParts, im using version 1.8.1.0...

    tks

  • Steve Steve admin's avatar

    Posted on Nov 1, 2007 (permalink)

    Hi TerraForum,

    Currently RadAjaxManager is not supported under Moss due to the page caching process, which the manager is not aware of. This is not valid for AjaxPanels as the controls reside within it. We will not have this working for RadAjax, but will do our best to have it working in RadAjax Prometheus, where basically every updated control is nested within UpdatePanel.

    Sorry for the temporary inconvenience.

    Greetings,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Natnael avatar

    Posted on Jan 7, 2008 (permalink)

    Did you have it working in RadAjax Prometheus, yet? Or are you still working on it?

    Thanks,

    Nat

  • Steve Steve admin's avatar

    Posted on Jan 8, 2008 (permalink)

    Hello Natnael,

    We have been working hard on the migration to the Prometheus suite for all controls currently in the ASP.NET suite and have not been able to play around with MOSS yet. I am logging it in our TODO list with higher priority and we will research this.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • License Developer avatar

    Posted on May 28, 2008 (permalink)

    Is there any progress on using RADAjaxManager within sharepoint web parts?

  • Konstantin Petkov Konstantin Petkov admin's avatar

    Posted on May 29, 2008 (permalink)

    Hello,

    I'm happy to inform you that you can use RadAjaxManager from Telerik.Web.UI suite into MOSS WebParts now. In case of dynamic manager creation though, you will need to add the manager both to the Page.Items as well as Page.Form.Controls collections. You should do that on Page_Init and then add the AJAX settings on Page_Load or PreRender events.

    Regards,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Posted on Jun 25, 2008 (permalink)

    Hello sir,

    Do you please explain through code that how can we achieve this in webpart.

    thanks
    Nishim

  • Konstantin Petkov Konstantin Petkov admin's avatar

    Posted on Jun 25, 2008 (permalink)

    Hi Nishim,

    Please, review the help article here and let us know if further assistance is needed.

    Greetings,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • David Frost avatar

    Posted on Aug 7, 2008 (permalink)

    I have installed the Q1 2008 RadControls (.NET 2.0) and still have a problem getting RadAjaxManager to render properly in SharePoint 2007.

    I am developing *.aspx pages not web parts.  After copying over the project dll I use the "Upload Document" feature in SharePoint 2007 to render the page.  Is the SharePoint 2007 caching issue still a problem?  It appears by the responses above that this is fixed with the new release.

    I also tried dynamic rendering to no avail as well.  If this is fixed can someone tell me what I need to do to get this working?

    I am upgrading to SharePoint 2007 from 2003 (where this component works perfectly), and some of the pages are so complex with 4-5 AjaxLoadingPanels that re-doing with the RadAjaxPanels is just not an option I want to entertain.

    Thanks

  • Konstantin Petkov Konstantin Petkov admin's avatar

    Posted on Aug 8, 2008 (permalink)

    Hello David,

    Unfortunately there are problems with the "Classic" RadAjaxManager (from the ASP.NET suite) which are quite difficult to resolve. Instead, I suggest you give the RadAjaxManager from the ASP.NET AJAX suite a try. We have updated your own account so that you can download the Telerik.Web.UI.

    We are sorry for the caused inconvenience. Please let us know if we could be of further help.

    Regards,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • David Frost avatar

    Posted on Aug 8, 2008 (permalink)

    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:

    1. Install AJAX 2.0 Extensions
    2. Upgrade all controls from "rad:" to "telerik:"
      1. I had to modify some of the namespaces as well.
    3. Insert the RadScriptManager
    4. Remove the using Telerik.WebControls and replace with using Telerik.Web.UI
    5. 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>


  • Konstantin Petkov Konstantin Petkov admin's avatar

    Posted on Aug 11, 2008 (permalink)

    Hi David,

    Unfortunately I'm not sure what could be the problem in this case, but I assume you've hit a general problem integrating the AJAX with SharePoint. I suggest you take a look at the following blog posts which discuss the topic:

    http://blog.thekid.me.uk/archive/2007/01/19/using-asp-net-ajax-with-sharepoint-moss-2007.aspx
    http://shailajakumar.blogspot.com/2007/04/implementing-aspnet-ajax-in-moss-2007.html
    http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3

    I hope these help!

    All the best,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • David Frost avatar

    Posted on Aug 11, 2008 (permalink)

    [Solved]:  Correct the error was in the SharePoint 2007 integration.  Many of the articles on the web utilize this function called EnsureUpdatePanelFixups().  Which is written primarily for WebPart development.  My application is built with *.aspx pages, which are added to SharePoint 2007 using the "Upload Document" feature.  Below is the code that I had to comment out to get the AjaxManager working (note: uncommenting the lines below will work for WebParts but not aspx pages).

    In the HTML:

    <script type="text/javascript">

    _spOriginalFormAction = document.forms[0].action;

    _spSuppressFormOnSubmitWrapper=

    true;

    </script>

    In the Code Behind:

    protected void Page_Load(object sender, EventArgs e)

    {

    EnsureUpdatePanelFixups();

    }

    private void EnsureUpdatePanelFixups()

    {

    //if (this.Page.Form != null)

    //{

    // string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];

    // if (formOnSubmitAtt == "return _spFormOnSubmitWrapper();")

    // {

    // this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";

    // }

    //}

    ScriptManager.RegisterStartupScript(this, typeof(<<class name here>>), "UpdatePanelFixup", "_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;", true);

    }

    Hope this helps others that my encounter this problem.

  • Konstantin Petkov Konstantin Petkov admin's avatar

    Posted on Aug 12, 2008 (permalink)

    Hello David,

    I'm glad the problem is solved on your end. Thank you for sharing the solution with the community!

    All the best,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Ajax > radajaxmanager sharepoint 2007 bug