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
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,