:: Forum >>

Put AW RADIO on first column (help jim / alex)

Hi,

I need in my first column radio buttons.
How i implement this functionality ?

obj = new AW.Grid.Extended;
data = [["","1000","1500","2000"],["","2500","3000","4000"]];
obj.setId("obj");
obj.setCellText(data);
obj.setCellTemplate(new AW.Templates.Radio, 0);
obj.setHeaderText(["","Col1","Col2","Col3","Col4"]);
obj.setSelectorVisible(true);
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});
obj.setSelectorWidth(28);
obj.setHeaderHeight(20);
obj.setSelectionMode("single-row");
obj.setColumnCount(5);
obj.setRowCount(data.length);
obj.setAttribute("tabIndex", "1");
obj.setAttribute("hidefocus", "false");
obj.setSelectedRows([0]);
obj.setColumnWidth(25,0);
obj.setColumnWidth(200,1);
obj.setColumnWidth(120,2);
obj.setColumnWidth(150,3);
obj.setColumnWidth(90,4);
obj.refresh();
Victor
Thursday, June 29, 2006

This topic is archived.


Back to support forum

Forum search