3.0 beta 2

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
June 30,
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)
July 3,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.