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

Using Telerik Rad Grid in Provider Hosted App in SharePoint 2013

3 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 23 Sep 2014, 10:14 AM
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

3 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 25 Sep 2014, 01:22 PM
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.

 
0
Amit
Top achievements
Rank 1
answered on 07 Jan 2016, 12:59 AM
is there any sample available anywhere that works with telerik grids in sharepoint provider hosted app deployed to azure app service?
0
Marin
Telerik team
answered on 07 Jan 2016, 07:37 AM
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
Tags
Grid
Asked by
Gary
Top achievements
Rank 1
Answers by
Marin
Telerik team
Amit
Top achievements
Rank 1
Share this question
or