Hi,
is it possible to customize the error messages returned by an ajax response? In c# there are the Exception classes that have a variety of Messages - i.e. InnerMessage, Stack, etc. How can this be done on the client (i.e. via the AJAXResponseError handler)?
Best regards,
Frank Piotrowsky
Thanks Svetelina,
that helped a lot! I finally found the tutorials I was looking for. :-)
Frank
Hello Frank,
Thank you for posting in our forums.
Here is the online article regarding CustomAJAXResponse :
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=WebDataGrid_Handling_Server_Side_Exceptions_Using_AJAX.html
Below you can see how this can be done in WHDG:
http://community.infragistics.com/forums/p/58531/298009.aspx#298009
And how you can use the AdditionalProperties:
http://community.infragistics.com/forums/t/47488.aspx#254086
Let us know if you need further assistance
Hi Frank,
The CustomAJAXResponse available off of the Grid has a Message and Tag property that can both be set. In addition, you can add any number of string/object pairs to the AdditionalProperties property. You should get the ajax response error to fire so long as the action was in a container grid. There was a bug recently fixed (84361) where it didn't fire for WHDG actions. This should be resolved in an upcoming service release.
regards,
David Young