Check inside RadComboBox

6 posts, 0 answers
  1. Daniel Vidaurreta
    Daniel Vidaurreta avatar
    3 posts
    Member since:
    Nov 2009

    Posted 20 Nov 2009 Link to this post

    Hi!!

    As can put a checkbox radcombobox?
  2. Robert
    Robert avatar
    82 posts
    Member since:
    Jun 2009

    Posted 23 Nov 2009 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 24 Nov 2009 Link to this post

    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.
  5. Daniel Vidaurreta
    Daniel Vidaurreta avatar
    3 posts
    Member since:
    Nov 2009

    Posted 27 Nov 2009 Link to this post

    Hi!!

    Thank you very much.
    It was what I wanted.
  6. Daniel Vidaurreta
    Daniel Vidaurreta avatar
    3 posts
    Member since:
    Nov 2009

    Posted 27 Nov 2009 Link to this post

    Forgiveness, as I know which to select the check?

    I'm looking and I find no solution.

    Daniel
  7. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 27 Nov 2009 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready