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

Custom Tools images when using Ribbon Bar

2 Answers 148 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 24 Apr 2012, 02:57 PM
Hi there,

I have set up a Rad Editor and created a custom tool to handle the saving function.

I got all functionality working and the tool icon was displaying correctly with my own custom logo which was specified with the following css:
.reTool .SaveSubSection
{
   background-image: url(../Images/save_Icon.png) !important;
}

I then moved onto using a full tools.xml file using the ribbon bar feature. 

Here is a section showing my custom tool declaration:
<root>
    <modules>
        <module name="RadEditorStatistics" dockingZone="Bottom"/>      
    </modules>
    <tools name="Save" tab="Home">
        <tool name="SaveSubSection" shortcut="CTRL+S" showtext="false"/>
    </tools>
</root>

The button still produces the required functionality, however my custom logo does not show, it has been replaced with the "i" in a speech bubble icon.

How does my CSS have to change to get custom icons when using the rad ribbon bar within the Rad Editor?

Regards
Ryan

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 25 Apr 2012, 02:58 PM
Hi,

All you need to set an icon for the Ribbonbar's custom button  is to set the ImageUrl attribute in the ToolsFile.xml file, e.g.

<tool name="AddFields" shortcut="Ctrl+L" ImageUrl="~/Images/Fields.gif"/> 

You can find more information in the following document: Adding-Custom-Button-in-RadEditor-RibbonBar.zip.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ryan
Top achievements
Rank 1
answered on 25 Apr 2012, 05:08 PM
Thanks for that. It's simple when you know how.
Tags
Editor
Asked by
Ryan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or