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

[Solved] Icons/Text for custom tools

1 Answer 174 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rainer Friedl
Top achievements
Rank 1
Rainer Friedl asked on 11 Dec 2007, 11:24 AM
Hello,
I add custom tools for e.g. saving methods. Functionality is fine and works good. (good approach you have choosen, by the way).

The only thing I got no success is setting custom icons for the commands and showing the text alone without an icon. Always the icon from the 'Info ballon' is shown.

For setting the Text I tried adding the tools dynamically and setting the properties 'ShowIcon' to false and 'ShowText' to true. The text is shown, but not in full size and the icon is visible in the background.

For setting my custom image as the icon I tried the attribute 'iconurl' in the tools file, but with no changes (There is no property in the class 'EditorTool' to set the image).

How can I achieve this?

Thanks
Rainer

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Dec 2007, 03:00 PM
Hello Rainer Friedl,

Please, review the following help article which provides guidance how to create custom buttons and set their tool icons:

Adding Your Own Buttons.

Here is how to set an icon to a button called Custom1 and using the Default skin

<style>
.rade_toolbar.Default
.Custom1
{
   
background-image: url(http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif);
}
</style>

Best regards,
Rumen
the Telerik team

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