Skip to Content
0
Jan 11, 2016 at 10:03 AM

how to get a radiobutton Id from radiobutton group.

994 Views

I want to show different chart on click of radio button as of now. I have a radiobutton group. How did is fetch particular radiobutton. for example.

view::

<RadioButtonGroup id="RID" select="onSelect_Radiobutton" columns="3">

<buttons>

<RadioButton text="Domestic" id="Domestic" selected="true"

/>

<RadioButton text="Commertial" id="Commertial" />

<RadioButton text="Industrial" id="Industrial" />

</buttons>

</RadioButtonGroup>

Controller:

onSelect_Radiobutton : function(evt) {

if( ---"some code to fetch and evaluate which radiobutton"---)

{

var op3 = this.getView().byId("idPanel");

op3.removeAllContent();

op3.addContent(oVizFrame).addContent(oPopOver);

}

ifelse(){}.... continue

},

.....................................

How to perform "some code to fetch and evaluate which radiobutton".