Code:
on *:DIALOG:dname:sclick:id1,id2:{
  if ( $did(id1).state ) {
    did -e $dname id3,id4
  }
  else {
    did -b $dname id3,id4
  }
}

id1 = "on" radio button
id2 = other radio button
id3,id4 = id's of controls to be enabled/disabled