PDA

View Full Version : RadioButton group in a DataGrid


cuk
05-21-2007, 05:23 PM
Hi Everybody,

I thought this was a very simple concept but have stumbled upon quiote a few road blocks. I have been trying to insert a RadioButtonGroup into a DataGrid. I could successfully complete that by inserting the RadioButtonGroup in an HBox component. I was not able to insert the RaddioButtonGroup directly.

So now the only problem I had is linking the Radio button to a certain value in the dataProvider. In my case, i load XML data into the DataGrid. There is a certain tag, whose value I would liek to associate with the RadioButtons.

The Group has 2 buttons "Button1" and "Button2". The value in the XML is originally blank, not selecting both radio buttons. but when I select the Button1 or Button2, its value must get saved to the XML dataProvider. And I am using an XML bindable variable as dataProvider and so, I thought it will be easy to assign the selected values back to the XML.

But I have been facing the problem of not being able to associate the radiobutton value to the dataField of the DataGridColumn :confused: . I cant undertsand why. I have been trying to override the set value function. Please give me some suggestions on this.

Thanks in advance!!!!