same thing as in DT ;) - could go around it with dataFilter: but - or did i miss a better alternative?
because if you can't use the php scripts or adapt the Server side ... you're lost :D
Editor doesn't have an ajax.dataSrc option as there is no one option that would be remapped, like the data option in DataTables. You could potentially use the dataFilter option of $.ajax as you suggest though.
well i don't want to hack the server side of an existing API - and thus i need to change the response to a format that DTE expects ... and i guess in this Case dataFilter is my only Option - from string to json back to string to json but thats clients work ;)
Yes I think so. Been thinking about this over the weekend and a dataSrc option in Editor would basically just work the same way as dataFilter. It might save a JSON decode and encode, but that's about it.
Replies
yes no? or is there a other way ?
Editor doesn't have an
ajax.dataSrc
option as there is no one option that would be remapped, like thedata
option in DataTables. You could potentially use thedataFilter
option of$.ajax
as you suggest though.What is it you are trying to do specifically?
Allan
well i don't want to hack the server side of an existing API - and thus i need to change the response to a format that DTE expects ... and i guess in this Case dataFilter is my only Option - from string to json back to string to json but thats clients work ;)
Yes I think so. Been thinking about this over the weekend and a
dataSrc
option in Editor would basically just work the same way asdataFilter
. It might save a JSON decode and encode, but that's about it.Allan