Threaded View

  1. #11
    Sencha User
    Join Date
    Feb 2008
    Posts
    39
    Vote Rating
    1
    cjauvin is on a distinguished road

      0  

    Default


    Thank you cking for this fantastic work! I'm using it with 4.1.1a and it seems to be working great so far.

    I had to fiddle around for a while to understand how to make it work in the controller of a MVC app however, so I thought I might share what I came up with. In particular, I wanted the handler to a "group icon click" (i.e. the "groupaction" event) to be in the controller, and not the view.

    First, it seems that in the view, the "callback" argument of the "groupActions" items MUST be defined to something: I set it to "Ext.emptyFn":

    PHP Code:
    {
        
    xtype'rowactions',
        
    // ...
        
    groupActions: {
            
    // ...
            
    callbackExt.emptyFn
        
    }

    Second, in the "init" function of the controller, I do:

    PHP Code:
    this.control({
        
    '<some_identifier> rowactions':
            
    groupaction:  function(gridrecordsactiongroupValue) {
                
    // your handler code here..
            
    }
    }); 
    and it works! I hope it might be useful to someone.
    Last edited by cjauvin; 29 Oct 2012 at 12:54 PM. Reason: added user name

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..." hd porno faketaxi