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

Split button text not changing

1 Answer 64 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 26 Mar 2015, 01:23 PM
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>
<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.

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 30 Mar 2015, 03:59 PM
Hello,

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.

Regards,
Ivan Danchev
Telerik
 

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

 
Tags
RibbonBar
Asked by
Martin
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or