0

I want to know that how in ExtJS MultiSelect ComboBox i can search for a value. Like if i have entered 's' then a list of items starting with a must be displayed and the item selector should select if it matches with 's'.

This is the code i tried.....

    cbCfg = {
      name  : property.columnname,  
      hideOnSelect  : false,  
      triggerAction : 'all',  
      mode      : 'local',  
      width     : comboFieldSize,  
      store     : new Ext.data.SimpleStore({  
          id            : 0,  
          fields        : ['strValue','strText'],  
          data          : data  
      }),  
      listWidth     : 400,  
      valueField        : 'strValue',  
      displayField  : 'strText'  
    };  
    field       = new form.MultiCombo(cbCfg);  

thnkz in advance,

just:-)

lambypie
  • 471
  • 1
  • 12
  • 35

1 Answers1

0

I assume that MultiSelect ComboBox extends functionality of Ext.form.ComboBox.

You could try going with triggerAction : 'query', which is the default - it should filter out non-matching entries. Although that could be a little bit counter-intuitive for the user.

Another possible approach is adding typeAhead : true property - should trigger suggesting suggestions based on the text entered by user.

Li0liQ
  • 11,158
  • 35
  • 52