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

how to open .pdf file using hyperlink manager icon in editor Icon

3 Answers 177 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Perfect
Top achievements
Rank 1
Perfect asked on 20 Jan 2011, 01:18 PM
Hi,
 I have 2 issues. below I mention please feel free to give the solution.
1.  In my application folder structure I have a folder inside I kept a some .pdf files, I'm using Telerick:radeditor (Q2 2010 version). when It's editable mode , I'm using Hyperlink manager Icon in toolbar(Insert Hyperlink icon), here I specify the link of particular .pdf file(http://~Common/StaticContent/test.pdf). but when I run the application when I click on link the path(url path of the file).pdf file is not open. Please help me.I need a urgent solution on that.

 2. and also previosully I'm using classic (Q2 2009 version) rad editor, I  implemented below event EditableChanged.
This can be work fine to me. but when I update my telerick control(Q2 2010 ) and implemented same event I got a error in Toolbars propertie.
  Below message /error I got when I run the application.
'Telerik.Web.UI.RadEditor' does not contain a definition for 'Toolbars' and no extension method 'Toolbars' accepting a first argument of type 'Telerik.Web.UI.RadEditor' could be found (are you missing a using directive or an assembly reference?) 

 

 

protected void RadEditor1_EditableChanged(object sender, Telerik.WebControls.EditableChangedEventArgs e)

 

{

 

 

 

try

 

 

{

 

 

Toolbar toolbar = RadEditor1.Toolbars["DecisionsToolbar"];

 

 

 

 

if (toolbar == null)

 

{

toolbar =

 

 

new Toolbar("DecisionsToolbar");

 

toolbar.ShowToolsText =

 

 

true;

 

toolbar.IsDockable =

 

 

false;

 

RadEditor1.Tools.Add(toolbar);

}

 

 

 

ToolbarButton button = toolbar.Tools.FindToolByCommandName("button") as ToolbarButton;

 

 

 

 

if (button == null)

 

{

button =

 

 

new ToolbarButton("button");

 

 

 

 

//button.ShowText = true;

 

 

button.ShowIcon =

 

true;

 

toolbar.Tools.Add(button);

}

}

 

 

 

catch (Exception)

 

{

 

 

 

 

throw;

 

}

 

}
 Below message /error I got when I run the application.
'Telerik.Web.UI.RadEditor' does not contain a definition for 'Toolbars' and no extension method 'Toolbars' accepting a first argument of type 'Telerik.Web.UI.RadEditor' could be found (are you missing a using directive or an assembly reference?) 

  Please give me solution asap to me.

 Thanks in Advance
 Mr. Perfect.

 

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Jan 2011, 01:11 PM
Hi Mr. Perfect,

Straight to the points:
1) The following link http://~Common/StaticContent/test.pdf has a wrong path because the ~ tilde path symbol is not a valid web path symbol and the browser could not recognize it. This symbol is used only in ASP.NET but not in HTML.

For your convenience I have created a video http://screencast.com/t/gNEKek9Df,  which demonstrates how to insert a PDF link from the Document manager in the Link manager. You can use this scenario to insert links with valid paths.

2) To reduce the RadEditor's code and optimize its loading speed, the HasPermission and Editable properties were replaced by the Enabled property in RadEditor for ASP.NET AJAX. You can find more information here. If you want to have a pencil icon and place the editor in editable and non editable modes, you can add a server asp.button or image button and its Click server event to enable / disable the editor using its Enabled server property.

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.
0
Perfect
Top achievements
Rank 1
answered on 11 Feb 2011, 01:28 PM
Hi,
   Existing radeditor I add some images like file attachment(.gif) icon,  how can i add this image to my rad editor ? I'm using  versionq22010.

Thanks in Advance
Mr. Perfect

 
0
Rumen
Telerik team
answered on 14 Feb 2011, 07:46 AM
Hello Perfect,

You can use the image upload functionality of RadEditor's Image Manager to upload and insert the desired image in the content area. See this article for more information: Images.

All the best,
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
General Discussions
Asked by
Perfect
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Perfect
Top achievements
Rank 1
Share this question
or