Categories | Question details Back To List | ||
grid and Dataprocessor Hi there, I have a grid and with manual update by DataProcessor. I'm trying to update by onEditCell 2 stage. Below my code: itemsGrid.attachEvent("onEditCell", function(stage,row_id,cell_index,new_value,old_value){ switch(stage){ case 0: break; case 1: break; case 2: if (old_value!=new_value){ myDataProcessor.sendData(row_id); } break; } }) When i edit cell, dataprocessor sends right data, but after update dataprocessor undo cell value in grid. Do i use sendData in right why? What's cause of problem? Thanls in advance Answer posted by Support on Feb 18, 2009 05:03 You need to return true from onEditCell event break; } return true; }) When not-true value returned from function, it counted as signal to deny edit operation and revert to old value. ( by the way, dataprocessor in auto-update mode will generated sendData calls automatically , when value in any cell changed ) Answer posted by Rustamjon Mukhammadaliyev on Feb 18, 2009 05:10 Thanks, I'll try it. |