Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 05, 2007 10:04
open dhtmlx forum
I'm looking at the dataProcessor functions and have some questions. When manual saving the gris to the serv...

I'm looking at the dataProcessor functions and have some questions.
When manual saving the gris to the server I have to use the sendData function (?).
Is it possible to have some result of this update, like OK or ERROR? So when grid is saved to the server (POST) I can check the result from the server and do some more stuff like closing the popup window or present the error message to the user.
Answer posted on Mar 05, 2007 10:06

a) You can use setOnAfterUpdate to add your own after update functionality;

b) You can add new or extend any existing callback by using the next syntax:

            myDataProcessor.defineAction("update",function(xml){ alert(xml.data); });

 The first parameter is an action type, you can extend default "insert", "update", "delete" actions; or implement a new one.

Answer posted by Nadine (Support) on Dec 09, 2014 00:00

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking dhtml library and calendar java script.