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

Check inside RadComboBox

5 Answers 120 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel Vidaurreta
Top achievements
Rank 1
Daniel Vidaurreta asked on 20 Nov 2009, 10:35 AM
Hi!!

As can put a checkbox radcombobox?

5 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 23 Nov 2009, 06:55 PM
Hello Daniel,

The RadComboBox's Items collection is a RadItemCollection. Due to this, you can actually add any object that derives from RadItem to the RadComboBox. I believe this includes all of the different element types included with the RadControls for WinForms. Here is how you would add a RadCheckBoxElement to the RadComboBox.

            RadCheckBoxElement chkElement = new RadCheckBoxElement(); 
            chkElement.Text = "This is a checkbox"
            radComboBox1.Items.Add(chkElement); 

I hope this helps.

- Robert
0
Deyan
Telerik team
answered on 24 Nov 2009, 12:57 PM
Hi Daniel,

Thanks for your question.

Basically, Robert's approach is the correct one but you will have to manually close the RadComboBox drop-down upon clicking on a check box since RadComboBox control handles this only if the user clicks on a RadComboBox item.

You can do this in the following way:

this.radComboBox1.CloseDropDown();

I hope this helps.

Kind regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Daniel Vidaurreta
Top achievements
Rank 1
answered on 27 Nov 2009, 08:03 AM
Hi!!

Thank you very much.
It was what I wanted.
0
Daniel Vidaurreta
Top achievements
Rank 1
answered on 27 Nov 2009, 09:42 AM
Forgiveness, as I know which to select the check?

I'm looking and I find no solution.

Daniel
0
Vassil Petev
Telerik team
answered on 27 Nov 2009, 09:48 AM
Hi Daniel Vidaurreta,

Please, review the provided checkbox documentation:
http://www.telerik.com/help/winforms/ui_radcheckboxoverview.html

Regards,
Vassil
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Daniel Vidaurreta
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Deyan
Telerik team
Daniel Vidaurreta
Top achievements
Rank 1
Vassil Petev
Telerik team
Share this question
or