3.2.0

How to set the values to a checkbox in each row of the grid?

I created check box by following code:

GridCheckbox = AW.UI.ImageText.subclass();
GridCheckbox.create = function() {
AW.Templates.CheckBox.create.call(this);
var obj=this.prototype;
obj.setClass("ui","checkbox");
obj.setControlProperty("value",false);

obj.setEvent("onclick", function(){
this.setControlProperty("value",true);
//alert(this.getControlValue());
})
}
grid.setCellTemplate(new GridCheckbox, 0);

can anyBody help me?
Thanks in advance
you can post your reply to rajesh.chow1985@gmail.com
Rajesh
September 3,
Why do you make your custom checkbox inherit from AW.UI.ImageText instead of directly from AW.Templates.CheckBox?
Alex (ActiveWidgets)
September 7,

This topic is archived.

See also:


Back to support forum