Dropdown toolbar not displaying text after icon has been selected

2 posts, 0 answers
  1. Pierre
    Pierre avatar
    4 posts
    Member since:
    Feb 2011

    Posted 26 Nov 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 28 Nov 2011 Link to this post

    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
Back to Top