3.2.0

AW.UI.Input in Grid Question (Events)

I have a AW.UI.Input in my grid in one column and a AW.UI.Checkbox in another.(I cannot use editable cells due to requirements )


obj.setCellTemplate(new AW.Templates.Checkbox, 8);
obj.setCellValue(function(col, row){return data.getData(col,row)=="Yes" ? true : false}, 8);

var inp = new AW.UI.Input;
obj.setCellTemplate(inp, 10);

After a user enters using data in the input box, I need to find out if the user entered data or not, and if so, uncheck the checkbox in the current row.

I tried using :
obj.onCellValidating = function(text, col, row){
alert("onCellValidating - text: " + text + ", col: " + col + ", row: " + row);
}

But its not picking up the event.

Does anyone know how to fix this?

Thanks
sv




sv
August 2,
Alex can you help?
sv
August 6,
AW.UI.Input and AW.UI.Checkbox classes are standalone controls and you should not use them as cell templates (they would behave as disconnected standalone controls inside the grid).

Instead you should use AW.Templates.Input and AW.Templates.Checkbox classes which are intended to be used as cell templates.

Alex (ActiveWidgets)
August 7,

This topic is archived.

See also:


Back to support forum