Skip to Content
avatar image
Former Member

Radio button group with DDB

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 28, 2015 at 04:51 PM

    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


    Add comment
    10|10000 characters needed characters exceeded