MultiColumnComboBox filtering Q2 2010 Example

4 posts, 0 answers
  1. Dennis
    Dennis avatar
    5 posts
    Member since:
    Dec 2008

    Posted 20 Sep 2010 Link to this post

    Does anyone have an example of how to use a MultiColumnComboBox with RadControls for WinForms 2010 Q2?  I can't seem to find an example in the demos that came with it and I'm not able to get it working.  My code is posted below.  Basically my grid (the comboelement if I'm reading correctly) never displays.  The first value in the datatable displays in the text box but no grid shows up.  I can press the down arrow and the value changes but still never displays.  Can anyone help me?

     

     

     

    //set up data

     

     

     

    Data objData = new Data();

     

     

    DataTable dtCarriers = objData.GetCarriers();

     

    bindingSource1.DataSource = dtCarriers;

     

     

    //setup drop down grid display options

     

    rmccbCarrier.AutoSizeDropDownToBestFit =

    true;

     

    rmccbCarrier.DisplayMember =

    "CARRIER_CODE";

     

     

    RadMultiColumnComboBoxElement multiColumnComboElement = this.rmccbCarrier.MultiColumnComboBoxElement;

     

    multiColumnComboElement.DropDownSizingMode =

    SizingMode.UpDownAndRightBottom;

     

    multiColumnComboElement.DropDownMinSize =

    new Size(420, 300);

     

     

    this.rmccbCarrier.MultiColumnComboBoxElement.AutoCompleteMode = AutoCompleteMode.None;

     

     

    this.rmccbCarrier.DropDownStyle = RadDropDownStyle.DropDown;

     

     

    FilterDescriptor descriptor = new FilterDescriptor(this.rmccbCarrier.DisplayMember, FilterOperator.StartsWith, string.Empty);

     

     

    this.rmccbCarrier.EditorControl.FilterDescriptors.Add(descriptor);

     

     

    this.rmccbCarrier.DropDownStyle = RadDropDownStyle.DropDown;

     

    rmccbCarrier.AutoFilter =

    true;

     

    rmccbCarrier.MultiColumnComboBoxElement.AutoCompleteMode =

    AutoCompleteMode.None;

     

  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 23 Sep 2010 Link to this post

    Hello Dennis,

    You can read more about the RadMultiColumnComboBox in the online documentation. In addition, you can take a look at the RadMultiColumnComboBox example in the Examples application supplied with RadControls for Winforms.

    Kind regards,
    Svett
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. MP
    MP avatar
    22 posts
    Member since:
    May 2009

    Posted 30 Sep 2010 Link to this post

    I faced the same problem and found that I have to set the IsFilterEditor = true for the filter to work.

    Regards,
    MP
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 05 Oct 2010 Link to this post

    Hello MP,

    Yes, your are right. If you want to make a concrete filter to appear in the filter cell, you should set the IsFilterEditor property to true.

    We are working on updating the documentation of RadGridView. It will be available in the upcoming Q3 2010. 

    All the best,
    Svett
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top