Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Nov 14, 2008 06:48
open dhtmlx forum
dhtmlx undo bug?

Hi,

i have a grid where if the user types in a wrong answer then it displays an error message and uses the grid.undo function to undo their answer (i cannot check the answer in the oneditcell function as our system uses ajax to check the answer on the server)

this works fine and it appears to have undone the error. however when i click back in the cell the data they just got wrong reappears as if the undo hasnt worked

is this a bug?

thanks
Answer posted by Support on Nov 14, 2008 07:35
>>is this a bug?
It sounds as one.
If you are using doUndo(), value of cell must be fully restored and not changed to some other value on next edit attempt.

Please provide info for which column type such issue occurs and if you are using any code attached to the onEditCell | onCellChanged events - please provide it as well. 
Answer posted on Nov 14, 2008 07:46
my apologies, i had some suspect code that was causing the problem.

thanks