Emoticon always dropdown?

3 posts, 0 answers
  1. Don Tian
    Don Tian avatar
    2 posts
    Member since:
    Sep 2009

    Posted 24 Apr 2011 Link to this post

    Hi,

    I followed the sample emoticon demo at
    http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx

    The problem is, after selecting an emoticon via the dropdown, it is very hard to select another emoticon from the same dropdown because you have to click on the tiny dropdown arrow and it is very easy to click on the icon and get another of the same emoticon you previously selected.

    Is there any way to make the EditorSplitButton always dropdown its items, even if you click on the icon?


  2. Rumen
    Admin
    Rumen avatar
    13803 posts

    Posted 25 Apr 2011 Link to this post

    Hello Don,

    You can disable the built-in update header functionality of a custom tool or another split-button using the javascript code below. Therefore every time when you click on the button it will expand its dropdown:

     <script type="text/javascript">
    function OnClientLoad(editor) {
       //Disable header update functionality 
    var tool = editor.getToolByName("<Put Your Tool Name Here>"); tool.set_updateHeader(false);
    }
    </script>
     <telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server" ...

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Don Tian
    Don Tian avatar
    2 posts
    Member since:
    Sep 2009

    Posted 25 Apr 2011 Link to this post

    Thanks, that worked!
Back to Top