Split button text not changing

2 posts, 0 answers
  1. Martin
    Martin avatar
    10 posts
    Member since:
    Nov 2009

    Posted 26 Mar 2015 Link to this post

    I'm attempting to set the text value of the owner button on a ribbon bar split button using the following javascript:

    $find("<%= MainRibbonBar.ClientID %>").findButtonByValue(button).get_owner().set_text("newtext");

    When I do this, the text does not visibly change and when I examine the HTML I see the following:

    <span class="rrbButtonMid rrbSplitButton">
    <span class="rrbButtonIn">
    <span class="rrbImagePlaceholder">
    <img alt="Item Image" src="/Images/Icons/Save.png" class="rrbButtonImage" style="visibility: visible;">
    <span class="rrbButtonText"><span class="rrbTextContent">newtext</span></span>
    <span class="rrbButtonArrow"><span class="rrbIcon"></span><span class="rrbButtonText"><span class="rrbTextContent">oldtext</span></span>

    As you can see, the first rrbTextContent span has indeed got the new text value, however, inside the rrbButtonArrow object there is another rrbTextContent object which still contains the old text.

    Since this element appears on top, it entirely covers the updated text meaning that the command changes nothing.

    How can I resolve this?  I only just noticed this issue after upgrading my telerik components so it's possible that this is the result of a recently introduced bug.  I may also have changed something somewhere myself that stopped this from working.
  2. Ivan Danchev
    Ivan Danchev avatar
    1993 posts

    Posted 30 Mar 2015 Link to this post


    We can confirm there is a bug related to setting the RibbonBarSplitButton text. We will do our best to fix it in one of our upcoming releases. We are sorry for any inconvenience this issue might have caused you.

    You can track the bug's progress on our Feedback Portal and vote/like it if you want.

    As a token of gratitude for reporting this issue I updated your Telerik points.

    Ivan Danchev

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top