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

Option buttons

3 Answers 93 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Zsolt
Top achievements
Rank 1
Zsolt asked on 08 May 2007, 05:24 PM
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

3 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 09 May 2007, 01:07 PM
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
0
Zsolt
Top achievements
Rank 1
answered on 09 May 2007, 03:26 PM
Thank you Jordan. Will it be possible to add the option buttons with the designer in SP1?

\Zsolt
0
Dimitar Kapitanov
Telerik team
answered on 09 May 2007, 03:45 PM
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
Tags
RibbonBar
Asked by
Zsolt
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Zsolt
Top achievements
Rank 1
Dimitar Kapitanov
Telerik team
Share this question
or