Using Telerik in a SharePoint Web Part

By: Neil Barkhina

Telerik is a company that makes some great ASP .NET controls. One of the many requests I get from customers is how to use these controls within a SharePoint Visual Web Part. SharePoint, being an enterprise and scalable environment by default does not allow custom controls from DLL’s without first doing a few steps. Let’s walk through it, for this example I am using SharePoint 2013 and Visual Studio 2012:

Step 1

Create a DLL Folder in your Visual Web Part Project and add the three Telerik DLL’s

Step 2

Go to add reference in your project and point at those DLL’s

Step 3

Double click on the Package and click on the Advanced Tab. Then add those 3 DLL’s

Step 4

Edit the Telerik.Web.UI entry and add a Safe Control record. You can grab the PublicKeytoken by first adding it to your GAC and then looking at the Windows\Assembly Folder. Remember to check off Safe

Step 5

Step 6

Add the Telerik Calendar to your Visual Web Part

Additional Notes

When you deploy your WSP, the DLL’s should end up in the GAC, and SharePoint will add safecontrol entries for your web part and the Telerik DLL:

Add the web part to your SharePoint site, and voila it should look like this!

Comments are closed.