t-edson / bootstable

Javascript library to make HMTL tables editable, using Bootstrap
GNU General Public License v3.0
62 stars 57 forks source link

configuration with datatable's dynamic data using ajax request #11

Open ghost opened 4 years ago

ghost commented 4 years ago

how can i integrate with dynamic data using ajax in datatable and update values of it.

CraftingGamerTom commented 4 years ago

With this code you will have to init() after you have filled out the table. The same kind of problem you are trying to solve is what made me think to rewrite this library into something dynamic and allows for multiple tables and dynamic refreshes. It is in a separate project because I believe the goals of the libraries are slightly different. This may suit you better.

t-edson commented 3 years ago

I don't know how Datatable works. But I think you could in integrate in it because at the low level Datable work with a common HTML table. Bootstable in new versions is easy to adapt and it's well documented.

peter450 commented 1 year ago

To integrate dynamic data using ajax in datatable and update values of it, it is necessary to add • a data-id on each tag row of the table (not an id because already in use with id="editing"), • an ajax request in each butRowAcept() and butRowDelete() functions. I have also added a data-type in each colomn tag with an array: var type = ["date","number","time","number","number"}, to have a specific type of input. Bootstable.js is a very fine script.