1. #1
    Sencha User
    Join Date
    Apr 2011
    Location
    Netherlands
    Posts
    51
    Vote Rating
    0
    TobyJustus is on a distinguished road

      0  

    Default listener for radiofield

    listener for radiofield


    Hello i want to use a listener with radio fields. I thought to use change but then it is going wrong because it will fire the old and new radio button. I use this:

    xtype: 'radio',
    fieldLabel: '',
    boxLabel: 'Kmph',
    anchor: '100%',
    checked: gpsSpeedKmph(speedFormat),
    stateId: 'speedRateKmph',
    name: 'speedrate',
    inputValue: 1,
    listeners: {
    change: function (f, newValRefresh) {
    Set_Cookie('speedFormat', 1);
    ND.refresh();

    }
    }
    }, {
    xtype: 'radio',
    fieldLabel: '',
    boxLabel: 'Mph',
    anchor: '100%',
    checked: gpsSpeedMph(speedFormat),
    stateId: 'speedRateMph',
    name: 'speedrate',
    inputValue: 2,
    listeners: {
    change: function (f, newValRefresh) {
    Set_Cookie('speedFormat', 2);
    ND.refresh();
    }
    }
    }, {
    xtype: 'radio',
    fieldLabel: '',
    boxLabel: 'K',
    anchor: '100%',
    checked: gpsSpeedKnots(speedFormat),
    stateId: 'speedRateKnots',
    name: 'speedrate',
    inputValue: 3,
    listeners: {
    change: function (f, newValRefresh) {
    Set_Cookie('speedFormat', 3);
    ND.refresh();
    }
    }
    }

    But this is the wrong way. What should i use as listener?
    -->

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Location
    Netherlands
    Posts
    51
    Vote Rating
    0
    TobyJustus is on a distinguished road

      0  

    Thumbs up


    Hey i solved my problem with this :

    listeners: {
    change: function(item, state){
    if(state){
    Set_Cookie('throughFormat', 1);
    ND.refresh();
    }
    }
    }
    -->

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