Results 1 to 2 of 2

Thread: not firing event

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Vote Rating

    Default not firing event

    I have the following code in my contoller
    Ext.define('MyApp.controller.Installation', {
        extend: '',
      refs: [{
            ref: 'installationsCombo',
            selector: 'breadcrumb combobox'
        stores: ['Installations'],
        models : ['AppState'],
        init: function() {
            // Start listening for events on views
                'breadcrumb combobox': {
                    select: this.onInstallationSelect,
                    scope: this
        onLaunch: function() {
            var installationsStore = this.getInstallationsStore();
                callback: this.onInstallationsLoad,
                scope: this
        onInstallationsLoad: function() {
            var installationsCombo = this.getInstallationsCombo();
        //installationsCombo.fireEvent("select", this.getInstallationsStore().getAt(0));;
        onInstallationSelect: function(selModel, selection) {
            console.log("Installation selection changed");
            this.getAppStateModel().selectedInstallationId = selection[0].get('installationId');
            this.getAppStateModel().selectedInstallationName = selection[0].get('name');
           // Fire an application wide event
            this.application.fireEvent('installationSelect', selection[0]);
            console.log("Installation Select Event fired");        

    The problem I am facing is that the "; " is not firing the select event and hence the onInstallationSelect method is not being called. I use this event to load other parts of the application. When I make a selection from the combobox manually, everything works.

    Any ideas as to why the select() method on the combo box is not firing the select event?

    Thanks in advance.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Does change fire for both selection and using setValue?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

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