Categories | Question details Back To List | ||
how do handle confirmation messages in Gris using dataprocessor? I am performing Grid operation using Dataprocessor fine. Now i want to display status message in client side. For example "operation successfull". How do i do that? Once the server side operation done i am returning succeess flag. ex: return 1; How do i handle this message displayed in client side? Answer posted by dhxSupport on Sep 07, 2009 06:44 You can use custom server side responces http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxdataprocessor:custom_server_side_responses Or dataProcessor's events http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxdataprocessor:events Also please check this article http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxdataprocessor:common_tasks Answer posted by velmurugant on Sep 08, 2009 02:52 Hi, i have tried the above said techniques. but i didnt get any improvements. I am sending data to sever side using the below code. myDataProcessor.sendData(); Once the sever side operation (add/update) done, how do i get response in client side? i have tried using the below dp.defineAction("updated",function(sid,response){ Answer posted by dhxSupport on Sep 08, 2009 03:36 After update/insert/delete operations your server side code should returns response in the following format: <data> <action type='[action name]'> anything </action> </data> Standard action names is "update", "insert" and "delete". Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:dataprocessor Answer posted by velmurugant on Sep 08, 2009 04:16 Done. Now it is working fine.Thanks. |