Auto Complete in dropdownlist

5 posts, 0 answers
  1. Roya
    Roya avatar
    26 posts
    Member since:
    Jan 2012

    Posted 21 Apr 2012 Link to this post

    Hi
    I set the autoCompeleteMode=SuggestAndAppend     In DropDownList , but when i filter it,   the filtering description is Startwith not Contain.for example when i write 'b' i want to see all the words which are contain 'b' not only the words which are start with 'b' .is it possible to do it?Is it possible to do the same thing in MultiColumnComboboxes?
     
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 23 Apr 2012 Link to this post

    Hello Roya,

    Thank you for writing.

    In Q3 2011 SP1 we introduced a new property in RadDropDownList named SuggestMode that manages the AutoCompleteSuggest behavior:
    radDropDownList1.DropDownListElement.AutoCompleteSuggest.SuggestMode = SuggestMode.Contains

    As to your question regarding RadMultiColumnComboBox - this is controlled by the AutoFilter property. You should setup the filter expression (set the Operator property to Contains) and add that expression to MasterTemplate:
    this.radMultiColumnComboBox1.AutoFilter = true;
    this.radMultiColumnComboBox1.DisplayMember = "ContactName";
    FilterDescriptor filter = new FilterDescriptor();
    filter.PropertyName = this.radMultiColumnComboBox1.DisplayMember;
    filter.Operator = FilterOperator.Contains;
    filter.Value = "Maria";
    this.radMultiColumnComboBox1.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);

    For more information about RadMultiColumnComboBox filtering please, refer to this help article.

    Do not hesitate to contact us if you have other questions.

    Greetings,
    Peter
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Roya
    Roya avatar
    26 posts
    Member since:
    Jan 2012

    Posted 26 Apr 2012 Link to this post

    Thank you Peter
  5. Gezim
    Gezim avatar
    4 posts
    Member since:
    Jun 2012

    Posted 19 Jun 2012 Link to this post

    Hi Peter,
    This question is about RadMultiColumnComboBox filtering.
    I post one thread regarding to this issue but yet i don't have any reply.
    My question is:
    I the way that you(Telerik) has describe in  RadControls for WinForms  i implement but i have problem when this i am implementing together with AutoSizeDropDownToBestFit.
    My post was:
    [

    Posted 5 minutes ago (permalink)

    Hi,
    I am using this property for best fit my column(objComboBox.MultiColumnComboBoxElement.AutoSizeDropDownToBestFit =

    true;) in RadMultiColumnComboBox columns but when i have data source which have a lot of data i need to implement filtering on it.
    I am implemening it in this way:

    FilterDescriptor filter = new FilterDescriptor();

    filter.PropertyName = objComboBox.DisplayMember;

    filter.Operator =

    FilterOperator.Contains;

    objComboBox.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
    but it's take a lot of time when the filter is auto complete.
    Please how to make filtering in this controll and dont take a time.
    Note: When i am not using
    AutoSizeDropDownToBestFit it's( Filter) works fine and i dont have delay( my data source have more then 1000 items and 3 columns), but when i have Combo which have more then 3 column and the size of DropDown is less, than the user can not see what have in that control.
    What is your suggestion to eliminate this issue.
    ]
    I will wait for your reply.
    Best regards,
    Gezim

  6. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 22 Jun 2012 Link to this post

    Hello Gezim,

    You have posted your question in the other forum thread and five minutes later you are saying that you do not have an answer. Please note that although we do monitor our forums (usually within 72 hours in business days), our participation there is not obligatory. If you want to receive on time assistance from Telerik representatives, please consider purchasing one of the packages with support subscription that we offer: http://www.telerik.com/purchase.aspx.

    All the best,
    Peter
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready