1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    72
    Vote Rating
    3
    TDeBailleul is on a distinguished road

      0  

    Default scrollend event on List not working

    scrollend event on List not working


    Hi everyone,

    There is my list definition

    Code:
    app.views.ActualitesList = function (config) {
        Ext.apply(this, config);
    
    
        this.actuGrid = new Ext.List({
        	store: app.stores.actualites,
            itemTpl: app.templates.actualiteList
        });
        
         
    //constructor
        app.views.ActualitesList.superclass.constructor.call(this, {
        	dockedItems: [{
            	xtype: 'toolbar',
            	ui:'dark',
            	title: 'Actualites',
            	items:[this.resetBtn,{xtype:'spacer'},this.newBtn]
        	}],
        	layout: 'fit',
        	items: [
        		this.actuGrid
        	]
        });
        
        this.actuGrid.scroller.on("scrollend", this.onActuGridScrollEnd, this) <---- Scrollend listener
    };
    
        
    Ext.extend(app.views.ActualitesList, Ext.Panel, {
     	initComponent: function() {
            app.views.ActualitesList.superclass.initComponent.apply(this, arguments);
        },
        
        onActuGridScrollEnd: function(grid,e){
        	alert("Scrollend");
        }
    });
    When I add the scrollend listener, my application won't work anymore (white screen in iOS Simulator).
    Can somebody tell me why ?

    Thanks !

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    72
    Vote Rating
    3
    TDeBailleul is on a distinguished road

      0  

    Default


    Could you briefly tell me what would be a good format ?

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    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


    This is how the ListPaging plugin does it.

    Code:
    var targetEl = list.getTargetEl();
    
    list.mon(targetEl.getScrollParent(), 'scrollend', someFn, this);
    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.

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    72
    Vote Rating
    3
    TDeBailleul is on a distinguished road

      0  

    Default


    This method is not working either. This could be because of the code format ? Is there a better way to organize the code ?

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    72
    Vote Rating
    3
    TDeBailleul is on a distinguished road

      0  

    Default


    Please, if someone could take a look a this problem. This is really important and I Can't figure out why it does not work.

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