Hi,
I use a column with acheck value and another one with checkbox.
I want when I click on a acheck, all the rows with checkbox validated are updated. So I want all the acheck are updated in one time.
I Trying that bellow to change the acheck but without success :
[code]this.grid.forEachRow(function(id){
if(this.cells(id,1).getValue()==1){ // if the checkbox is validated
orderid+=this.cells(id,2).getValue()+",";
if(this.cells(id,indextochange).getValue()==0)
this.cells(id,indextochange)( “<div onclick=’(new eXcell_acheck(this.cells(id,indextochange).parentNode)).changeState(); (arguments[0]||event).cancelBubble=true;’ style='cursor:pointer; font-weight:bold; text-align:center; ‘><img height=‘13px’ src=’”+this.imgURL+“green.gif’> Yes”,1);
else
this.cells(id,indextochange)("<div onclick=’(new eXcell_acheck(this.cells(id,indextochange).parentNode)).changeState(); (arguments[0]||event).cancelBubble=true;’ style=‘cursor:pointer; text-align:center; ‘><img height=‘13px’ src=’"+this.imgURL+"red.gif’> No",0);
}
});[/code]
Can someone help me to do that ?
Thanks