RadEditor RibbonBar - ToolsFile set tool group header

2 posts, 0 answers
  1. Chris
    Chris avatar
    33 posts
    Member since:
    Oct 2015

    Posted 29 Jan Link to this post

    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

     


  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 01 Feb Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top