I'm attempting to set the text value of the owner button on a ribbon bar split button using the following javascript:
When I do this, the text does not visibly change and when I examine the HTML I see the following:
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.
$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><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></span></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.
