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

[Solved] SuperCharging "Custom Links" Function

3 Answers 179 Views
Editor
This is a migrated thread and some comments may be shown as answers.
rdochert
Top achievements
Rank 1
rdochert asked on 04 Feb 2008, 03:15 AM
i found the following thread on the forum from a couple of years ago (http://www.telerik.com/community/forums/thread/b311D-cmgba.aspx).

In it, the possibilty of adjusting the width of the custom links tool as well as changing the default ("Custom Links") text on a case by case basis (rather than across the whole app) were discussed.

I was wondering if either of these items had been implemented as i could find some utility for both.

Cheers!
rob

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Feb 2008, 08:42 AM
Hi Rob,

Yes, it is possible to adjust the width of the custom links dropdown by using the solution provided in the following help article: Resizing The Dropdown Header And Pop Up Size.

Yes, you can also localize the Insert Custom Link dropdown on a case by case basis using the Text attribute of the telerik:EditorTool inner tag, e.g.

<telerik:radeditor runat="server" ID="RadEditor1">
<Tools>
    <telerik:EditorToolGroup>
        <telerik:EditorTool Name="InsertCustomLink" Text="My Custom Links" width="200px" />
    </telerik:EditorToolGroup>
</Tools>
</telerik:radeditor>

You can find more information in the following three help articles:
Setting the Text Property,
Using Global Resource Files,
Setting the Localization Property.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rdochert
Top achievements
Rank 1
answered on 04 Feb 2008, 07:41 PM
Thanks Rumen, excellent advice.

I'm trying to make all of my changes through an external tools file so that it is only changed in one place. The changes i made there worked for the text on the tool but not the popupwidth (the Width property refers to the width of the tool on the toolbar but i was actually trying to adjust the width of the popup as some of the links i place in there may have longer text descriptions which i did not want to wrap). I amended the external file as follows:

<tool name="InsertCustomLink" Text="Quick Links" popupwidth="400px" />

I found that popupwidth would not work in the external file so, for now, i've had to place that in the code behind of each page as follows:

Dim tool As Telerik.Web.UI.EditorTool = RadEditor1.Tools(2).FindTool("InsertCustomLink")
tool.Attributes("popupwidth") = "400px"


If there is a way to specify the popupwidth in the external file then i would love to hear about that.

Sincerely,
rob
0
Rumen
Telerik team
answered on 05 Feb 2008, 08:21 AM
Hi Rob,

Thank you for pointing out the toolsfile issue.

We verified that when the popupwidth, popupheight and width attributes are set in the ToolsFile then they are not applied. We investigated and fixed the problem in our internal build of RadEditor "Prometheus".

The bug will not exist in the upcoming hotfix of RadEditor "Prometheus" due in the end of February' 2008.

Our suggestion is to set this attributes via the codebehind until you apply the hotfix in the end of this month.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
rdochert
Top achievements
Rank 1
Answers by
Rumen
Telerik team
rdochert
Top achievements
Rank 1
Share this question
or