I was wondering there was a way for the server to return an

I was
wondering there was a way for the server to return an error code and error
message to the javascript grid via XML.  The grid api does not currently
have any error action defined (server has to return insert, delete , update).
It is difficult to integrate the grid with a web based appplication.  The
application (server side) may fail for a valid reason. It would be nice to be
able to cancel the current grid action adn display an error message in the
messager div to inform the user. Displaying an error page or an XML error at
this point is less than elegant, please advise.


The latest version of dataProcessor lib supports user
defined actions. So you can extend existing action or define your own (an
“error” action for example).


 You can use the next syntax to create your own client
side action handlers:


   
myDataProcessor.defineAction(“update”, function(xml){


                       
alert(“Updated”);


                       
return true;


           
});
 

The name of action is equal to “action” attribute in XML
response, so you can define any type of action, or extend existing