[CLOSED] Combobox. show items with part of string instead of only from left to right..

  1. #1

    [CLOSED] Combobox. show items with part of string instead of only from left to right..

    Hi,

    Searched for a standard attribute on the combobox object, but it's probably not available.
    I have a combobox populated from a webservice with a lot of customers. I would like to show the customers in the combox while typing a part of a string.

    So, when typing for example 'art' in the combox I would like to see in the dropdown entries like 'Art Vanderlay' , 'Martin', 'Special Art' etc..
    Now only the entry 'Art Vanderlay' will appear ..

    Is this possible ?

    Martin
    Last edited by Daniil; Jul 16, 2012 at 9:42 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Do you load the items remotely?

    So, if you have configure the ComboBox something like this:
    https://examples2.ext.net/#/Form/Com...Custom_Search/

    You would need to change the logic here (it is within the Plant.cs).
    if (!string.IsNullOrEmpty(filter) && filter != "*")
    {
        plants.RemoveAll(plant => !plant.Common.ToLower().StartsWith(filter.ToLower()));
    }
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Do you load the items remotely?

    So, if you have configure the ComboBox something like this:
    https://examples2.ext.net/#/Form/Com...Custom_Search/

    You would need to change the logic here (it is within the Plant.cs).
    if (!string.IsNullOrEmpty(filter) && filter != "*")
    {
        plants.RemoveAll(plant => !plant.Common.ToLower().StartsWith(filter.ToLower()));
    }
    I will look into that. Thanks Daniil

    Martin

Similar Threads

  1. Replies: 1
    Last Post: Jan 27, 2012, 11:32 AM
  2. combobox list items not comming in left align
    By Nagaraju in forum 1.x Help
    Replies: 3
    Last Post: Dec 15, 2011, 3:27 PM
  3. [CLOSED] Layout School Part III: Why doesnt the UserControl show up
    By wagger in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: May 20, 2011, 8:10 AM
  4. Replies: 10
    Last Post: May 19, 2011, 7:43 AM
  5. [CLOSED] Items not showing as part of Ext.form.CompositeField
    By joeRobee in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 10, 2010, 7:27 PM

Posting Permissions