:: Forum >>

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
Thursday, September 3, 2009
Why do you make your custom checkbox inherit from AW.UI.ImageText instead of directly from AW.Templates.CheckBox?
Alex (ActiveWidgets)
Monday, September 7, 2009

This topic is archived.


Back to support forum

Forum search