Hello,
I am using a AutoCRUD="False" and EnableAjax="True" in my WebDataGrid. Now, Whenever the updating process throws an exception it will just show an alert window containg the whole "ToString" property of the exception object, I wonder if there's another way to handle this.
I've find this article
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.1/CLR3.5/html/WebDataGrid_Handling_Server_Side_Exceptions_Using_AJAX.html
But it seems that the methods are deprecated, notice the build version in that article is 2010.1 , I'm using 2010.3.
I hope someone could help me to handle server side exception alternatively.
Thanks and Best Regards,
Sherwin
Hi Sherwin,
I believe in 10.2, the framework was changed to allow all controls to have this type of functionality. So, you should probably use CustomAJAXResponse object off of the grid to send your data down to the client. This has a Message, Tag, and AdditionalProperties Props.
regards,David Young
Hi Dave,
Thanks for the info and It seems that we're close to the solution but setting the values of "Message" and "Tag" properties of CustomAJAXResponse isn't sent to client. I'm setting the properties within the "catch (Exception e)" scope.
btw the method raised that I use in client side is "WebDataGrid1_Grid_AJAXResponseError(sender, eventArgs)" and accessing the sender._customResponse.Message and sender._customResponse.Error have both " " values.
I hope there's still a solution since I need this to check for uniqueness of the field upon data entry and inform the user..
Regards,