Archive for January 31st, 2007

ComponentArt Grid – loop thru grid using javascript

January 31, 2007

This js function allows us to loop thru records in an componentart grid and check if a checkbox element is checked or not.
function CheckItems()
{
var grid=cagrid; // cagrid is the id of the componentart grid
var gridItem;
var itemIndex = 0;
var checked = false;
while(gridItem = grid.Table.GetRow(itemIndex))
{
if (gridItem.Cells[0].Value) // 0 is the 1st column as it is of [...]