I have 2 sets of radio buttons with 2 different group names. I'm
using them to do some filtering. The function is pretty basic and
will work with both groups but I need to know what group is calling
the function. Can someone please help me with the correct code to
get the radioButtons groupName?
public function filterByBLine(evt:ItemClickEvent):void {
trace (evt.currentTarget.groupName);
if (evt.currentTarget.selectedValue == "All"){
projectArray.filterFunction = null;
projectArray.refresh();
} else {
projectArray.filterFunction = DGFilter;
projectArray.refresh();
}
}
<mx:RadioButtonGroup id="businessLineRB" itemClick="filterByBLine
(event)"/>