1. #1
    Ext User franzisk's Avatar
    Join Date
    May 2007
    Posts
    163
    Vote Rating
    0
    franzisk is on a distinguished road

      0  

    Question Hwo to clear/empty/reset ComboBox/Store?

    Hwo to clear/empty/reset ComboBox/Store?


    I need to clear/empty/reset whatever, I just want zero data in there) ComboBox and Store, but it not working.

    In red are the ComboBoxes I need to do that, but how?
    Code:
    listeners: {
    	select:{
    		fn: function(combo, record, index) {
    			stateID = record.data.id; 
    			cbCities.reset();
    			cbNeighborhood.reset();				
    			cbCities.setValue('['+record.data.name+']');											
    			cbCities.store.load( {params:{id_country:countryID, id_state:stateID, id:3}} );
    		}
    	}
    }

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,505
    Vote Rating
    52
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

Thread Participants: 1