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

Custom Editor Tool Without Image

2 Answers 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
CRAIG
Top achievements
Rank 1
CRAIG asked on 02 Mar 2016, 06:33 PM

Hello,

 

I am trying to figure something out and not having any luck.

 

I am trying to add a Custom Editor Tool to my RadEditor. I have gotten most of what I want to work (on the Ribbon, on multiple tabs, in its own section) but I cannot get the Text to show up. Instead, I just get the default off-cent quote-i image.  I do not want an image to display; instead, I'd like the button's text to display.  

 

On the EditorTool ...

I've set:  ShowText = true;

And:     ShowIcon = false;

I've provided a Text property value. I've cleared out the ImageUrl and ImageUrlLarge values (String.Empty and null). But I can't figure out how to make the button show its Text and not its Image.

Can't figure out what I'm doing wrong.  Should I be using a different control (EditorTool)? Can I do it via the XML file?

2 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 07 Mar 2016, 02:58 PM
Hello Craig,

When using RibbonBar toolbar, small tools are rendered only with icon. IN order to show the text you should change the size of the button to medium. You can do that by using the xml toolsfile approach and add an attribute size set to medium

You can see example of this attribute in this demo—http://demos.telerik.com/aspnet-ajax/controls/examples/integration/ribbonbarandeditor/defaultcs.aspx.

Regards,
Ianko
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
0
CRAIG
Top achievements
Rank 1
answered on 07 Mar 2016, 09:00 PM
That's it, thanks!
Tags
General Discussions
Asked by
CRAIG
Top achievements
Rank 1
Answers by
Ianko
Telerik team
CRAIG
Top achievements
Rank 1
Share this question
or