3.2.0

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
October 20,
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
October 25,

This topic is archived.

See also:


Back to support forum