Results 1 to 2 of 2

Thread: Combobox with typeAhead search all test in tpl

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Answers
    3
    Vote Rating
    0
      0  

    Default Answered: Combobox with typeAhead search all test in tpl

    I have a combobox with a tpl config.

    Code:
    Ext.define('Private.view.case.Combo', {
      extend : 'Ext.form.field.ComboBox',
    
    
      initComponent : function() {
    
    
        var me = this, config;
    
    
        config = {
          typeAhead: true,
          fieldLabel : 'Customer',
          store : 'Customer',
          valueField : 'number',
          displayField: 'lastName',
          tpl: '<tpl for="."><div class="x-boundlist-item"><table><tr><td width="50">{number}</td>' +
            '<td width="150">{firstName}</td>' +
            '<td width="150" class="list-item">{lastName}</td>' +
            '<td width="100">{birthdate}</td></tr></table></div></tpl>',
          allowBlank: false,
          width: 600
        };
    
    
        Ext.apply(me, config);
    
    
        me.callParent();
      }
    });
    When i type text in the combobox it will only search in the lastname column.
    I would like to search in all the columns. Is that possible?

  2. Of course. Just override this method.

  3. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    574
    Answers
    59
    Vote Rating
    74
      1  

    Default

    Of course. Just override this method.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •