TreeTable, configurable via XML, and receives data in XML format.
TreeTable → Property “save” has page name defined, means that when value of editable control changes, the TreeTable submits POST request on “save” page to save the changes.
Problem: on server side the POST request processor returns data in XML format.
The data looks like this:
<messages><errors><error Category='Preprocessing' Name= 'Control Validation' IsModal='False' ><![CDATA[Unexpected or empty FormAction parameter.]]></error><error Category='Preprocessing' Name= 'Control Validation' IsModal='False' ><![CDATA[Unexpected or empty PageElementID parameter.]]></error></errors></messages>
But Client-side expects JSON, cannot handle XML and generates an error “Invalid JSON data for parsing” when above mentioned XML is returned.
I’d like to be able to parse XML response.
Question: how to define on client-side a custom Response handler for Save requests?
Thanks,
Vasiliy