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

RadControls and App-Pages in _layouts

1 Answer 79 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Andreas Kaech
Top achievements
Rank 1
Andreas Kaech asked on 22 Sep 2007, 05:36 PM
When developing with VS2005 in a Web-Environment, there are no problems with integration of RadControls (of course ;-).
But when developing in "normal" Projects (e.g. for making solutions in MOSS), I can't "drag & drop" a Telerik Control into a ASPX-Site ("System can't find the file")
Is there something to mention?

Thanks for answering. 

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 24 Sep 2007, 12:26 PM
Hello Andreas,

Unfortunately, we could not clearly understand what is the exact problem. Could you please elaborate a bit? In addition, do you use the controls in SharePoint Designer? If so, please note that the controls do not support SharePoint Designer. However, using our controls with SharePoint Designer is not a difficult task. Here is what you need to do:

1. Make the control assembly accessible for the SharePoint Web Application. This can be done in two ways - you can either add the control assembly in the machine's GAC or you can just copy it to the SharePoint application's bin folder. If you go with the bin folder, remember that you might need to raise the application's trust level to Full or Medium, since our controls need at least Medium trust to run correctly.

2. Add a safe control element for all the namespaces in the control assembly in the Web.config file. This will allow you to use the control in SharePoint pages.

3. Add the control to a page using SharePoint designer. Unfortunately our controls will not be visible in the SharePoint Designer's toolbox, so you will need to manually add them to the page. First you need to add a <%@ Register... %> line in the beginning of the web form or master page and then add the control instance as well. For Example:

<%@ Register TagPrefix="radm" Assembly="RadMenu.Net2, Version=4.3.1.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68" NameSpace="Telerik.WebControls" %> 
...  
<radm:RadMenu id="radMenu1" runat="server"></radm:RadMenu> 
 

Note that you need to use the assembly's fully qualified name if you have put it in the machine's GAC.

By default, SharePoint Designer does not allow code fragments in your pages so if you want to write some server-side events or any other piece of C#/VB.NET code, you will first need to enable the code fragments. You can do a quick search on Google if you are not sure how to do it.

Greetings,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Sharepoint Integration
Asked by
Andreas Kaech
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or