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();
}
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,