DataTables Editor capabilities

DataTables Editor capabilities

AlexanderLamasAlexanderLamas Posts: 58Questions: 1Answers: 0

Hi all,

I'm new using DataTables, and I would like to know if when you are using all features for the DataTable Editor, is it possible to somehow set up the delete, update, edit, create, details to use my web api to handle the api calls?

Like setup the DataTable ajax url to execute my web api method?

If its possible, how would be the setup for it?

If not, how DataTables would handle the CRUD operations saving everything into the database?

Also, my web api is made in Python and Django Rest Framework.
Is it possible when listing records (using some view) to use Django's pagination feature and lazy loading?

Thank you very much!

Regards,
Alex

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,453Questions: 1Answers: 10,055 Site admin
    Answer ✓

    Hi Alex,

    Yes indeed this is possible, the ajax option can be specified as an object with options for each CRUD action. See this example.

    Allan

  • AlexanderLamasAlexanderLamas Posts: 58Questions: 1Answers: 0

    Hi Allan,

    Thank you very much for your reply!

This discussion has been closed.