1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    178
    Vote Rating
    2
    TampaBay55 is on a distinguished road

      0  

    Default Problem with List Event Listener

    Problem with List Event Listener


    Greetings:

    Using ST2, I define a small list using the MVC pattern. When the application runs, all appears to work; however when I atttempt to listen to the "show" event on the grid, nothing happens. The selectionchange event on the grid that works fine....any insight? Thanks
    Code:
    Ext.define('GlsAmCrm.controller.appController',{
        extend: 'Ext.app.Controller',
        config:{
            refs: {},
            control: {
                'grplist':{
                    show: function(){
                        console.log('Grid Has Been Initialized!');                        
                    },                
                    selectionchange: function(){
                        console.log('Changed');
                    }
                }
            }
        }
    });
    Code:
    /**
     * GrpData List
     **/
    Ext.define('GlsAmCrm.view.grpdata.grpList',{
        extend: 'Ext.List',    
        xtype: 'grplist',
        config:{    
            grouped: true,        
            indexBar: true,
            flex: 1,
            store: 'grpStore',
            itemTpl:'{groupname}'        
        }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Usually what I see people doing in the show method could be handled somewhere else. What are you going to be doing in show?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    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.

  3. #3
    Sencha User
    Join Date
    May 2009
    Posts
    178
    Vote Rating
    2
    TampaBay55 is on a distinguished road

      0  

    Default


    Hey Mitchell:

    In EXTJS4 I would use the show event to load the record store for the list and select the first record in the list. I had to use the show event because I wanted to make sure the list was rendered before the selection. Would like to have the same ability in ST2.

    TB55

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."