Categories | Question details Back To List | ||
Question for DataProcessor(Check changed cell, self-define action) I have some question about DataProcessor(with xGrid) 1. Form example, I understand that data process may be triggered by Row or Cell has been changed than make the update/insert/delete action in DP library. I have question is: Is there any way to recognize which cell has been changed while on "update" action? Due to if we choose trigger by cell changed, the DP still send whole row to server. we can't got which cell hase been changed. 2. For defined action method(myDataProcessor.defineAction()), is this action can be catch by server code? I check the example code. For implicit action(update/insert/delete) can be caught by the parm:[!nativeeditor_status]. But it seems can't get my self-define action name. for ex: myDataProcessor.defineAction("uuu",testFunc); Is there any solution for server side to catch the action code? Thanks a lot for your kind support. Your product is really helpful for our project. Answer posted by Support on Dec 20, 2007 02:22 >>cell has been changed while on "update" action? DataProcessor doesn't provide such functionality , but you can use next workaround grid.attachEvent("onEditCell",function(stage,id,ind){ if (stage == 1) grid.setUserData(id,"edit_cell",ind); return true; }); as result grid automatically save last edited cell index in userdata , which will be sent to server. So on server side you can use edit_cell parameter Answer posted by Support on Dec 20, 2007 02:26 >>is this action can be catch by server code? dp.defineAction(... used to configure client side code to server side responses, if you need to send some custom action to server by dataprocessor you can use grid.setUserData(id,"!nativeeditor_status","uuu"); dataProcessor.sendData(id); where id - id of row |