SMART datagrid v.1 > Classes > GroupRow
Callback function specified in parameter callback runs in all descendant rows of level specified by level.
For example, if the level is 0, it will run in the child rows just below, and if it is 1, it will run in the descendant rows below. If want to run in all descendant rows, you can use visitAll.
// When the tree row has been checked/unchecked, it will also change checked state of descendant rows just below.
var visiting = false;
treeMain.onRowChecked = function (grid, row, checked) {
if (!visiting) {
visiting = true;
row.visit(function (child) {
grid.setChecked(child, checked);
});
visiting = false;
}
};