Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8653

Re: how to enable combobox when radio button selected in sapui5

$
0
0

Hi Harsha,

For radio buttons, the select (and not press) event is fired whenever a radio button is selected. For your scenario, however, you need to listen to the select event of the RadioButtonGroup.

 

Step 1 : Create all your RadioButtons within a RadioButtonGroup. (How?)

Step 2 : Listen to the select event of the RadioButtonGroup (and not RadioButton)

Step 3 : Use an event handler similar to this for the select event :

 

select : function() {     var oSelected = oRadioButtonGroup.getSelectedItem();     if(oSelected.getKey() == "<key_of_limited_liability_radiobutton>") {          oComboBox.setEnabled(true);     } else {          oComboBox.setEnabled(false);     }
}

 

 

Regards,

Pritin


Viewing all articles
Browse latest Browse all 8653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>