1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    227
    Vote Rating
    2
    nicolabaldo is on a distinguished road

      0  

    Default combobox with live search in a grid

    combobox with live search in a grid


    If I write 2 chars in the combo appears the filtered list and it works, but
    If I select anything and I click in the combo and I write other chars the list doesn't appears.
    If I watch the console of Firefox 12.0 there are the query... it's very strange!

    This is my code:
    Code:
    Ext.getCmp('myGrid').columns[0].editor= {	
        xtype: 'combo',
        store: myStore,
        displayField:'valore',
        valueField: 'codice',
        queryParam: 'valore',		
        mode: 'remote',
        triggerAction: 'all',
        editable: true,
        typeAhead: false,
        minChars: 1,
        matchFieldWidth: false,
        allowBlank: false,
        hideTrigger:true,
        pageSize:10,	
        forceSelection: true,
        listeners: {
            beforequery: function(queryEvent){
                if (!queryEvent.query)
                return false;			
            }		
        },
        listConfig: {
            width: 300,
            heigth: 200,
            loadMask: false,
            emptyText: 'Nessun record trovato'
        }	
    };
    Last edited by scottmartin; 5 Jul 2012 at 8:38 AM. Reason: Please format your code.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,982
    Vote Rating
    455
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Can I get more detail on your comment:
    If I select anything and I click in the combo and I write other chars the list doesn't appears
    hideTrigger:true, (If you select?)

    Is this an issue of not triggering the search not getting sent to server, or not result not returned?

    Perhaps a video? (or an example)
    http://www.techsmith.com/jing.html

    Scott.

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    227
    Vote Rating
    2
    nicolabaldo is on a distinguished road

      0  

    Default


    The server calls are made but I see anything.

Thread Participants: 1