morlandi / django-ajax-datatable

A Django app which provides the integration of a Django project with the jQuery Javascript library DataTables.net
MIT License
208 stars 64 forks source link

Edit cell #16

Closed mchessl closed 3 years ago

mchessl commented 3 years ago

Hi @morlandi !

I am trying to allow users to click on a cell, modify a cell and send back to django the new value. I tried using this tutorial but I haven't achieved my goal.

Do you know how I can could do such a thing ?

Thanks a lot :)

morlandi commented 3 years ago

Hello @mchessl I know datatables.net has an optional addon for editing in-place:

https://editor.datatables.net/

A Single developer licence costs $106.

In my example, I was just showing how to add a button to trigger an arbitrary action; then, I would rather open a modal form for editing the selected record. For that, I normally use my own package:

https://github.com/morlandi/django-frontend-forms

you might want to take a look at. Hope thie helps

mchessl commented 3 years ago

Many thanks @morlandi, I will go with your solution instead of editing in the cell ! Kind regards