Session object in Hyperlinkmanager

2 posts, 0 answers
  1. nidhi
    nidhi avatar
    1 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post


    I wanted to access my session data in the link  manager of RadEditor. Is this supported? If not how can I create dynamic views for link manager. My requirement is I want to create different controls on the linkmanager depending on my template.

    Thanks in advance.
  2. Rumen
    Rumen avatar
    12782 posts

    Posted 26 Jan 2011 Link to this post

    Hi Nidhi,

    Here are the steps to proceed:
    1) Register the external dialogs of the editor:
    1.1.) Copy the EditorDialogs folder to the root of the web application
    1.2.) Set the ExternalDialogsPath property to point to this folder:

    <telerik:RadEditor ID="RadEditor1" runat="server" ExternalDialogsPath="~/EditorDialogs"></telerik:RadEditor>

    2) Create a UserControl in the root of your web application for example named UserControl.ascx and register it in the \EditorDialogs\LinkManager.ascx external dialog file:

    <%@ Register TagPrefix="custom" TagName="customControl" Src="~/UserControl.ascx"  %>   
    <custom:customControl ID="customControl1" runat="server" />

    3) You have access to the Session from the codebehind of the custom user control that you load in the LinkManager.ascx.

    Best regards,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top