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

Session object in Hyperlinkmanager

1 Answer 51 Views
Telerik Trainer
This is a migrated thread and some comments may be shown as answers.
nidhi
Top achievements
Rank 1
nidhi asked on 21 Jan 2011, 10:10 PM
Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jan 2011, 02:34 PM
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,
Rumen
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.
Tags
Telerik Trainer
Asked by
nidhi
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or