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

Dropdown toolbar not displaying text after icon has been selected

1 Answer 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 26 Nov 2011, 04:17 PM
Hi,

I have created a dropdown toolbar, using  a ToolsFile.xml, which is loaded with emoticons. When the page has loaded, the editor looks like Image01. Once I have selected an emoticon, it looks like Image02. How do I get it to go back to what it looked like in Image01, after I have selected the emoticon?

I would really appreciate any help with this.

Thanks in advance,
Pierre

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 Nov 2011, 03:46 PM
Hi Pierre,

Please, examine the JavaScript code of the dropdown that is executed in the OnClientCommandExecuting event and if there is code similar to the following one remove it:

//Set the background image to the head of the tool depending on the selected toolstrip item
var tool = args.get_tool();
var span = tool.get_element().getElementsByTagName("SPAN")[0];
span.style.backgroundImage = "url(" + val + ")";


If the problem still persists, isolate it in a sample working project and send it for examination by opening a new support ticket.

Best 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
Tags
Editor
Asked by
Pierre
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or