Skip to Content
Nov 16, 2015 at 11:47 AM

Bind a tri-state radio button to a model


Hi All,

I have a requirement to create a table with a column called as decision. This field has 3 states for it - Yes, No & Maybe. Now I have create this control for all rows of table and bind the selected value to field in model - which is called as "decision".

My model structure is like this -

oModel = {

data: [

{name: "AA", amount: "99.00", decision: ""},

{name: "BB", amount: "22.00", decision: ""},



I know, I have to use sap.m.RadioButtonGroup and combination of radio button(s) control. But, could you please let me know, how to bind the selection by user in the model dynamically? As on save/submit, button press, I just want to use this whole model i.e. oModel->data and send it to backend for update. Please help me with some pointers or code snippets.