Option buttons

4 posts, 0 answers
  1. Zsolt
    Zsolt avatar
    16 posts
    Member since:
    Jan 2007

    Posted 08 May 2007 Link to this post

    Hi,

    I can't figure out how to add option buttons to the ribbon. I want a simple option button with two options in a chunk.  Is it possible?

    Thank you,
    Zsolt
  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 09 May 2007 Link to this post

    Hi Zsolt,

    You can add radio buttons to a ribbon bar chunk using RadHostItem like:
    RadioButton radioButton1 = new RadioButton();  
    radioButton1.Text = "Option1";  
    radioButton1.Location = new Point(5, 5);  
    RadioButton radioButton2 = new RadioButton();  
    radioButton2.Text = "Option2";  
    radioButton2.Location = new Point(5, 25);  
     
    Panel panel = new Panel();  
    panel.Size = new Size(100, 60);  
    panel.Controls.AddRange(new Control[] { radioButton1, radioButton2 });  
     
    RadHostItem hostItem = new RadHostItem(panel);  
    this.radRibbonBarChunk1.Items.Add(hostItem); 


    Best wishes,
    Jordan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Zsolt
    Zsolt avatar
    16 posts
    Member since:
    Jan 2007

    Posted 09 May 2007 Link to this post

    Thank you Jordan. Will it be possible to add the option buttons with the designer in SP1?

    \Zsolt
  5. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 09 May 2007 Link to this post

    Hello Zsolt Ujvari,
    Unfortunately this behavior will not be available in SP1. We have to do a major re-design in our design time infrastructure, which includes ability to Drag and Drop directly from the Toolbox inside a RadControl.

    Best wishes,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top