3.2.0

Two Radio buttons in a cell grid.

I need to have two radio buttons in a cell. I was able to add this a cell as described in sample code below. Now the problem is with radio button selection. When I click the selection does not change.

Also I want to know how to read the selected radio button value?

Appreciate any help.

Thanks,
Dev

var myCells = [
["MSFT","Microsoft Corporation", "314,571.156", "32,187.000",""],
["ORCL", "Oracle Corporation", "62,615.266", "9,519.000",""],
["SAP", "SAP AG (ADR)", "40,986.328", "8,296.420",""],
["CA", "Computer Associates Inter", "15,606.335", "3,164.000",""],
["ERTS", "Electronic Arts Inc.", "14,490.895", "2,503.727",""]
];

var obj = new AW.UI.Grid;

obj.setCellData(myCells);
obj.setColumnCount(5);
obj.setRowCount(5);

var cr = new AW.UI.Radio;
cr.setItemText(["home", "home2"]);
cr.setItemCount(2);
cr.setSelectedItems([0])
cr.setClass("flow", "horizontal");
obj.setCellTemplate(cr, 4, 2);

document.write(obj);
Dev
October 15,

This topic is archived.

See also:


Back to support forum