Results 1 to 2 of 2

Thread: Extjs 4.2 combo - clear listeners from the BoundList

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    51
    Answers
    1

    Default Answered: Extjs 4.2 combo - clear listeners from the BoundList

    How can I remove the listConfig listeners from my ComboBox:

    Code:
    
    
    var combo =Ext.create('Ext.form.ComboBox',{        valueField :'id',  
          store: store,      
          displayField :'description',   
           editable :true,      
           autoSelect :false,    
          forceSelection :false,   
           allowBlank :true,    
           typeAhead :false,    
           mode :'local',       
           listConfig :{         
                listeners :{         
                    itemclick :function(){ 
                       console.log('listConfig listeners itemclick');}
                    }
                }
    });
    I tried combo.listConfig.clearListeners(), but the listConfig member here seems just to be the configuration (no methods). I need access to the actual Ext.view.BoundList for the Combo, so I can call clearListeners() on it, but there doesn't seem to be a getter for it?

  2. Probably you are looking for getPicker() ?

    Code:
    combo.getPicker().clearListeners()
    http://docs.sencha.com/extjs/4.2.0/#...thod-getPicker

  3. #2
    Sencha User jdkhamba's Avatar
    Join Date
    Jul 2012
    Posts
    236
    Answers
    45

    Default

    Probably you are looking for getPicker() ?

    Code:
    combo.getPicker().clearListeners()
    http://docs.sencha.com/extjs/4.2.0/#...thod-getPicker

Similar Threads

  1. Replies: 3
    Last Post: 31 Mar 2015, 10:05 AM
  2. Extjs 5.1 Combo filter clear issue.
    By bramsreddy in forum Ext 5: Q&A
    Replies: 3
    Last Post: 19 Mar 2015, 10:44 PM
  3. IE10 -ms-clear with extjs combo box
    By ryanfebus in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 18 Apr 2013, 9:55 AM
  4. [4.0.2] Combo > Boundlist > emptytext not working?
    By slemmon in forum Ext: Discussion
    Replies: 6
    Last Post: 23 May 2012, 7:42 AM

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
  •