Populating Datatable and Editor with different AJAX sources

Populating Datatable and Editor with different AJAX sources

James12345James12345 Posts: 14Questions: 5Answers: 0

Hi

I have seen that this question has been asked before:
https://datatables.net/forums/discussion/27579/populating-editor-data-with-an-ajax-https://datatables.net/forums/discussion/39437/using-different-ajax-sources-for-table-and-editor

I have several linked tables and ID tables which when used shows the ID values which is necessary for editor to correctly update and add, however it is not friendly for the datatable view, hence I would like a ajax source php which returns the friendly text for Datatable and ajax for editor which returns the correct IDs etc.

In one of the responses from Allen he suggested that it may be supported in the future post December 2016. Is this now supported?

Many thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,506Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Hi,

    DataTables and Editor can use different ajax end points through their respective ajax options. However, Editor does require that you return the information for the row(s) that were edited , so you'd most likely need to make a query to the VIEW to get that information based on the latest id.

    That isn't something that the provided libraries will do automatically I'm afraid.

    Allan

  • James12345James12345 Posts: 14Questions: 5Answers: 0

    Thanks Allan

This discussion has been closed.