cancel
Showing results for 
Search instead for 
Did you mean: 

Radio button group with DDB

Former Member
0 Kudos

HI

I've radio button group (one on top other)  and under that drop down box that when user click on second

radio it open the dropdown box with value (otherwise it disabled) ,can this be done via new UI5 control

with extend and aggregation ?

Thanks

Miley

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_pereira6
Explorer
0 Kudos

Hi Miley.

Try to execute this steps:

Step 1 : Create all your RadioButtons within a RadioButtonGroup.

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 :

 

And use this code.

 
  1. select : function() {  
  2.      var oSelected = oRadioButtonGroup.getSelectedItem();  
  3.      if(oSelected.getKey() == "<key_of_limited_liability_radiobutton>") {  
  4.           oComboBox.setEnabled(true);  
  5.      } else {  
  6.           oComboBox.setEnabled(false);  
  7.      }  
select : function() {       var oSelected = oRadioButtonGroup.getSelectedItem();       if(oSelected.getKey() == "<key_of_limited_liability_radiobutton>") {            oComboBox.setEnabled(true);       } else {            oComboBox.setEnabled(false);       }  }

Best regards

Ricardo Pereira


Former Member
0 Kudos

Thanks but this is not what I meant...

I new to create new control which is compose all this controls as aggregation with UI Extend,

there is some example with this context?

Regards,

Miley

former_member182862
Active Contributor
0 Kudos

Hi Miley

Here is an example

http://jsbin.com/xefoma/edit?css,js,output

Answers (0)