3.0.5

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

This topic is archived.

See also:


Back to support forum