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:-)

4

1 に答える 1

0

MultiSelect ComboBoxの機能を拡張すると思いExt.form.ComboBoxます。

デフォルトの を使用してみてくださいtriggerAction : 'query'。一致しないエントリを除外する必要があります。それはユーザーにとって少し直感に反するかもしれませんが.

別の可能なアプローチは、typeAhead : trueプロパティを追加することです。ユーザーが入力したテキストに基づいて提案の提案をトリガーする必要があります。

于 2012-06-19T11:33:19.700 に答える