public/javascripts/inputex/build/inputex.js
function (value, sendUpdatedEvt) {
			
			var checkAny = true, valueFound = false, i, length;
			
			for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
				
				// valueFound is a useful when "real" choice has a value equal to allowAny choice default value
				// so we check only the first value-matching radio button
				if (value === this.choicesList[i].value && !valueFound) {
					
					this.choicesList[i].node.firstChild.checked = true;
					valueFound = true;
					checkAny = false;
					
				} else {
					this.choicesList[i].node.firstChild.checked = false;
				}
				
			}
			
			// Option allowAny
			if (this.radioAny) {
				
				if (checkAny) {
					this.radioAny.checked = true;
					this.radioAny.value = value;
					this.anyField.enable();
					this.anyField.setValue(value, false);
				} else {
					this.anyField.disable();
				}
			}
			
			// call parent class method to set style and fire updatedEvt
			inputEx.RadioField.superclass.setValue.call(this, value, sendUpdatedEvt);
		}
function (value, sendUpdatedEvt) {
			
			var checkAny = true, valueFound = false, i, length;
			
			for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
				
				// valueFound is a useful when "real" choice has a value equal to allowAny choice default value
				// so we check only the first value-matching radio button
				if (value === this.choicesList[i].value && !valueFound) {
					
					this.choicesList[i].node.firstChild.checked = true;
					valueFound = true;
					checkAny = false;
					
				} else {
					this.choicesList[i].node.firstChild.checked = false;
				}
				
			}
			
			// Option allowAny
			if (this.radioAny) {
				
				if (checkAny) {
					this.radioAny.checked = true;
					this.radioAny.value = value;
					this.anyField.enable();
					this.anyField.setValue(value, false);
				} else {
					this.anyField.disable();
				}
			}
			
			// call parent class method to set style and fire updatedEvt
			inputEx.RadioField.superclass.setValue.call(this, value, sendUpdatedEvt);
		}
function ( value , sendUpdatedEvt ) { var checkAny = true , valueFound = false , i , length ; for ( i = 0 , length = this . choicesList . length ; i < length ; i += 1 ) { // valueFound is a useful when "real" choice has a value equal to allowAny choice default value // so we check only the first value-matching radio button if ( value === this . choicesList [ i ] . value && ! valueFound ) { this . choicesList [ i ] . node . firstChild . checked = true ; valueFound = true ; checkAny = false ; } else { this . choicesList [ i ] . node . firstChild . checked = false ; } } // Option allowAny if ( this . radioAny ) { if ( checkAny ) { this . radioAny . checked = true ; this . radioAny . value = value ; this . anyField . enable ( ) ; this . anyField . setValue ( value , false ) ; } else { this . anyField . disable ( ) ; } } // call parent class method to set style and fire updatedEvt inputEx . RadioField . superclass . setValue . call ( this , value , sendUpdatedEvt ) ; }
Set the value of the Radio
@param {Any} value The value schould be one of this.options.values (which defaults to this.options.choices if missing) if allowAny option not true.
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
Set the value of the Radio