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

RadEditor RibbonBar - ToolsFile set tool group header

1 Answer 70 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Chris asked on 29 Jan 2016, 06:04 AM

HI

I'm using ToolsFile to customize the RadEditor.Tools :

.aspx

  <telerik:RadEditor ID="RadEditor1" Runat="server" ToolbarMode="RibbonBar" ToolsFile="~/Editor/DefaultToolsFile.xml">
  </telerik:RadEditor>

ToolsFile.xml

  <tools name="Clipboard" tab="Home">
    ...
    <tool name="Cut" text="cut" size="medium"/>
    ...

But how to set the group header (space char included) for tools group in ToolsFile :

  <tools name="Clipboard" text="Home here" tab="Home">
    ...
    <tool name="Cut" text="cut" size="medium"/>
    ...

text and header property not works, change the value of 'name' property ?

*group header sample - http://docs.telerik.com/devtools/wpf/controls/radribbonview/features/ribbon-controls/images/RibbonView_Group_Overview.png

Best regards

Chris

 


1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Feb 2016, 09:33 AM

Hello Chris,

You can use the name attribute of the tools node: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/toolbars/using-toolsfile.xml#tools-collectiontoolsandheadetools. I'll update the article to explain this more clearly.

Here is a basic example:

<?xml version="1.0" encoding="utf-8" ?>
<root>
    <tools name="Page Setup" tab="Page Layout">
        <tool name="PageProperties" size="large" />
    </tools>
</root>
<telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="XMLFile.xml" ToolbarMode="RibbonBar"></telerik:RadEditor>

and the expected result from this is attached.

You can see this in action in the following demo as well: http://demos.telerik.com/aspnet-ajax/editor/examples/ms-word-like-experience/defaultcs.aspx.

Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or