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();
    }
    }
    }
    -->

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar