QuickAccessToolBar items text

3 posts, 0 answers
  1. Jean-Marc Windholz
    Jean-Marc Windholz avatar
    42 posts
    Member since:
    Sep 2009

    Posted 10 Jun 2011 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 16 Jun 2011 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jean-Marc Windholz
    Jean-Marc Windholz avatar
    42 posts
    Member since:
    Sep 2009

    Posted 16 Jun 2011 Link to this post

    thank you!
    Seems to work
Back to Top