I have two columns in my grid the first column (week: which displays the day of the week) is of type ro and the second column (Date) is of calander type. I would like to change the value of the week cell based on the selected date. How can I accomplish this?
grid provides onEditCell event , which fires for each edit operation.
Your code may look similar to next
grid.attachEvent(“onEditCell”,function(stage,id,ind,value){
if (stage == 2 && ind ==1){
//this code will be executed when edit operation finished in column with index 1
var day_of_week=some_convert_func(value);
grid.cells(id,0).setValue(day_of_week);
}
return true;
});