Feature Request: add ajax.dataSrc to Editor

Feature Request: add ajax.dataSrc to Editor

QuaselQuasel Posts: 18Questions: 3Answers: 0

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

Replies

  • QuaselQuasel Posts: 18Questions: 3Answers: 0

    yes no? or is there a other way ?

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited December 2014

    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.

    What is it you are trying to do specifically?

    Allan

  • QuaselQuasel Posts: 18Questions: 3Answers: 0

    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 ;)

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    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.

    Allan

This discussion has been closed.