Using Telerik Rad Grid in Provider Hosted App in SharePoint 2013

4 posts, 0 answers
  1. Gary
    Gary avatar
    1 posts
    Member since:
    Apr 2007

    Posted 23 Sep 2014 Link to this post

    We are trying to create a provider hosted app with a telerik radgrid which will then be hosted from a SP 2013 site.

    It is known that Telerik for ASP.Net AJAX is supported in Provider Hosted App. We have include the Telerik.Web.UI dll in the bin folder of the web application. The DLL has also been added to the GAC.

    The moment we try to run the app, we get no definitive details other than a generic message "An error has occurred while processing the request".

    Our observation is that when we include the following tag in the web.config of the web application, "<location path="Telerik.Web.UI.WebResource.axd" />, the application crashes. 

    Are we missing any step ?

    Thanks in advance
    Girish

  2. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 25 Sep 2014 Link to this post

    Hi,

    You can check the browser console and the Sharepoint logs for more details on the error. From your description it looks like there is a problem with loading the web resources for the controls. 
    Indeed the Provider hosted Apps are supported by Telerik Controls as stated in this help topic, so the App should work as expected if you are referencing correctly the same version of the assemblies everywhere in the project and the application is deployed without an error. More information on troubleshooting problems with loading the web resources of the controls can be found here
    Also additional information on deploying apps containing telerik controls is available here:
    http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html (the approach is also valid for Sharepoint 2013) - there should be a SafeControls entry in the web.config specifying that the referenced Telerik assemblies are safe for use by the environment. The web resource handler should also be correctly registered in the web.config as follows:
    <handlers>
          <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=xxxx.x.x, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
        </handlers>

    I hope this helps.

    Kind Regards,
    Marin
    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amit sharepointer
    Amit sharepointer avatar
    13 posts
    Member since:
    Sep 2010

    Posted 06 Jan in reply to Marin Link to this post

    is there any sample available anywhere that works with telerik grids in sharepoint provider hosted app deployed to azure app service?
  5. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 07 Jan Link to this post

    Hello,

    You can check out this help topic containing additional information about deploying on Azure:
    http://docs.telerik.com/devtools/aspnet-ajax/deployment/deploying-to-azure

    Regards,
    Marin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top