Editor: How do you set "dataSrc": "" for server responses?
Editor: How do you set "dataSrc": "" for server responses?
johnthomas00
Posts: 8Questions: 3Answers: 1
In datatables, the server is not nesting the data under 'data', so I set "dataSrc": "" and it works great.
When I edit a record with Editor, the server replies with the same format, not nested under data. How/where do I set "dataSrc": "" in Editor for server responses?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There isn't any such option in Editor I'm afraid.
You can use
postSubmit
to modify the data object returned from the server into whatever form it is that you need, but because Editor needs information such as form and field validation errors, in addition to the row data (if successful) there isn't a trivial set option for that (it wouldn't be trivial!).Allan