:: Forum >>

Check Box Onclick event

Hi,

I know that the check box Template has an onclick event. But how do I highlight the row when I click a checkbox within a row.

Here is the Click event handler of the check box.

function toggleValue(){
var originalVal = this.getItemProperty("text");
var newValue = (originalVal == this.getCheckedProperty("true")) ? this.getCheckedProperty("false") : this.getCheckedProperty("true");
this.setItemProperty("text", newValue);
//alert(this);
this.refresh();
}
Binu
Wednesday, March 2, 2005
Thanks I figured it out.

function toggleValue(){
var originalVal = this.getItemProperty("text");
obj.setProperty("selection/index",this.getRowProperty("index")); var newValue = (originalVal == this.getCheckedProperty("true")) ? this.getCheckedProperty("false") : this.getCheckedProperty("true");
this.setItemProperty("text", newValue);
//alert(this);
this.refresh();
}
Binu
Wednesday, March 2, 2005

This topic is archived.


Back to support forum

Forum search