RadControls and App-Pages in _layouts

2 posts, 0 answers
  1. Andreas Kaech
    Andreas Kaech avatar
    121 posts
    Member since:
    Sep 2004

    Posted 22 Sep 2007 Link to this post

    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. 
  2. Paul
    Paul avatar
    4281 posts

    Posted 24 Sep 2007 Link to this post

    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=, 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.

    the Telerik team

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

Back to Top