1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default addListeners problem

    addListeners problem


    there is a togglefield in componentView's item, i want to listen the change event of togglefield control. if i do this as following:
    Code:
    {							xtype: 'togglefield',
    							listeners: {
    		        				change: function (me, thumb, value, options) {
    		        					
    		        					if(value == 1) {
    		        						...
    		        					}
    		        					else {
    		        						...
    		        					}
    		        				}
    							 }
    the change event of first item in componentView can be catched when i tap the toggle of first item. but the change event of other items in componentView can't be catched. Why?

    So i want to add a listener for togglefield in initialize function, how to write the addListeners code??
    Code:
    Ext.define('ShopSystem.view.SyohinZanListItem', {
        extend: 'Ext.dataview.DataItem',
        ......
         initialize: function(){    	    	this.down('title').setTitle(this._syohin_name.getHtml());
        	var s2 = this.down('togglefield');
        	s2.addListener(.....)   ???

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default


    i get it, thanks everyone.

    Code:
        	var s2 = this.down('togglefield');    	s2.on({
        		change: this.onToggleChanged
        	});

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