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

QuickAccessToolBar items text

2 Answers 53 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Jean-Marc Windholz
Top achievements
Rank 1
Jean-Marc Windholz asked on 10 Jun 2011, 06:27 PM
Hi,
I have a problem in my application:
I use a RadRibbonBar and the quickaccesstoolbar; I insert the items in the quickaccesstoolbar menu and the text of the item.
The item inserted are displayed with text and image and are RadButtonElement
One of these items (called "News Update") the text field is updated when the application starts up with a call to a webservice (if available).
The text of the button when visible is correctly updated, but also the text in the dropdownmenu of the overflowbutton is updated, while my goal is that the text of the item in the dropdownmenu is always "News Update", while the text of the text of the corresponding RadButtonElement, when visible, is correctly updated.
I tried to populate the text of the items of the dropdownmenu of the overflowbutton with the name (and not the text) of the RadButtonElement but I was not successfull.
Is there a way to obtain the result? 

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Jun 2011, 08:49 AM
Hi Jean-Marc Windholz,

A bit off topic, I noticed that you have added as a license developer the other Telerik account that you have. I would suggest that you submit support tickets/forum thread from the account of the license developer. This will allow us to recognize you as our customer and your support tickets will be reviewed according to the license that you have.

As to the question at hand, the menu item text is associated with the button text. This is why the menu item text changes whenever the button text changes. You can overcome this behavior by hiding the button element responsible for the text. In this way setting the button.Text property will change the menu item text, but this will not be visible in the button since this element is hidden. Then add your own text element and manipulate its text as needed. In this way you will have visible text in the button which will not affect the menu item text. Please find a sample project attached to this post.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Greetings,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Jean-Marc Windholz
Top achievements
Rank 1
answered on 16 Jun 2011, 10:18 AM
thank you!
Seems to work
Tags
RibbonBar
Asked by
Jean-Marc Windholz
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Jean-Marc Windholz
Top achievements
Rank 1
Share this question
or