I have an Intraweb application which is using the TTIWDBAdvWebGrid component. Two columns of the grid are comboboxes (editor is set to edCombo) - look at the picture below
What I want is that when one of the comboboxes is changed the other changed it's value to opposite (if first is YES then the other is NO).
I've tried with javascript code at the ClientEvents-combochange
valcb=GetEditValue(IWDBGESTANTObj,c,r);
if (c==5 )
{
if (valcb='OUI ') {SetCellValue(IWDBGESTANTObj,6,r,'NON'); }
else {SetCellValue(IWDBGESTANTObj,6,r,'OUI');}
}
but this code changed the values from the second combo to nothing....
How can I resolve this?