:: Forum >>
Clear radio buttons in a grid
Hi,
I have created a table and added a radio button to the first column using a template:
var radio = new AW.Templates.Radio;
circuit_grid.setCellTemplate(radio, 0);
I want to create a "Clear" button, which objective is to clear the selected radio button (wherever it is) every time the button is clicked.
My problem is that I don't know how to unselect the selected radio button. It seems that I cannot use the same methods that are available for a radio created with : AW.UI.Radio. and I have not found how to unselect radios created with: AW.Templates.Radio
Thanks!!!
Fabiola
Monday, June 30, 2008
AW.Templates.Radio is linked to the selection model, so you have to unselect the row(s) to clear radio button -
obj.setSelectedRows([]);
Alex (ActiveWidgets)
Thursday, July 3, 2008
This topic is archived.
Back to support forum
Forum search