How to add radcombobox to ribbon control

7 posts, 0 answers
  1. iduarte
    iduarte avatar
    2 posts
    Member since:
    Jul 2007

    Posted 15 Sep 2008 Link to this post

    Hi, I don't find the option to add a radcombobox to the ribbon control, can someone help me...?$0$0$0$0Thanks$0
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 16 Sep 2008 Link to this post

    Hi iduarte,

    Thank you for your question.

    First you should create a button group to hold the combobox in a ribbonbar chunk which you can do either in design time or programmatically. Please refer to the following code snippet about adding the radComboboxElement to the radRibbonBarButtonGroup:

    using Telerik.WinControls.UI;  
     
    ...  
     
    private void Form1_Load(object sender, EventArgs e)  
    {  
        this.radRibbonBarButtonGroup2.Items.Add (new RadComboBoxElement());  

    Feel free to contact me if you have any further questions.
     

    Greetings,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. it-workz
    it-workz avatar
    22 posts
    Member since:
    Mar 2007

    Posted 19 Oct 2008 Link to this post

    You would not be able to tell me were to find the add radcombobox option in the designer, now would you?
    I can add all kinds of check box and buttons to it, but the combobox is not in the add item list off the designer. I inspected the example name "first look" and it's definitely in the designer code, but I can't figure out how to get it there.... Even in the example I can't see the option in the selection list to add a comboxbox the the same place there already is one.

    fyi I'm using vs2005 and the latest release of the winform controls.
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 20 Oct 2008 Link to this post

    Hi Bob Krusemeijer,

    Unfortunately, there is no way to add a combobox to ribbonbar in design time in the current version. You can do it only through code.

    Sorry for the introduced inconvenience.

     
    Kind regards,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. it-workz
    it-workz avatar
    22 posts
    Member since:
    Mar 2007

    Posted 20 Oct 2008 Link to this post

    So that means that the example as shown in the demo name "first look" for ribbon is actually not reproducible with the current version? That would be weird.

    I put the code of the example in visual studio's designer generated file and it works flawless. It's just the automation that's gone. And it means I have to clutter my code, if it don't wan't to keep messing with the designer file. which is not recommended.

    When will the ability to add the radcomboboxelement thru the designer be restored?
  7. Nick
    Admin
    Nick avatar
    767 posts

    Posted 21 Oct 2008 Link to this post

    Hi Bob Krusemeijer,

    You are correct about the example. Again sorry for the introduced inconvenience. I can assure you that this design time fix is in our ToDo list and has high priority.

    Feel free to contact me back if you have further questions or comments.
     

    Kind regards,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. it-workz
    it-workz avatar
    22 posts
    Member since:
    Mar 2007

    Posted 24 Oct 2008 Link to this post

    I will be anticipating the next release with fix then. They are great controls nonetheless.
Back to Top
UI for WinForms is Visual Studio 2017 Ready