:: Forum >>

get values from checkbox template in grid

Hi

I am using AW.Grid.Extended and have one column in the grid as a checkbox column set by the follwing code:
grid.setCellTemplate(new AW.Templates.Checkbox, 1);

Can anyone tell my how to get the values from the checkboxes in the grid?
I want to get all the values and rowid when I submit a form.
How do I set a onclick event on the chekboxes?

Regards, Linda
Linda
Friday, October 20, 2006
I found the solution :)

function getChecked() {
for (var i = 0; i < grid.getRowCount(); i++) {
if (grid.getCellValue(1, i) == "true" || grid.getCellValue(1, i) == true) {
ids= ids+ grid.getCellValue(0, i) + ",";
}
}
ids= ids.substring(0, ids.length - 1);
}
Linda
Wednesday, October 25, 2006

This topic is archived.


Back to support forum

Forum search