vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.72k forks source link

Edit multiple fields of a record #278

Open asdren opened 11 years ago

asdren commented 11 years ago

I have a mysql result that are echoed onto a table with rows that looks like this:

ID name gender age action 1 john male 26 [edit button] 2 jane female 23 [edit button]

is it possible with this plugin to press the edit link and edit all those database fields that belongs to each record. so for example when i press the edit button on first row i am able to edit ID, john, male, 26 and save them to database?

If so how would the code look like?

The closest solution I have found with this plugin is the address example on the demo page: http://vitalets.github.io/x-editable/demo.html

But I am not aware on how to achieve this.

How would the edit button code look like and how would the javascript look like for me to do this?

Thanks in advance

vitalets commented 11 years ago

hi, unfortunatly saving several fields directly from inputs is not possible now. It's popular task, but x-editable legacy does-not allow to do it easily.

If suitable, you can edit each field locally, and then submit them all together like in this example: http://vitalets.github.io/x-editable/docs.html#newrecord

maharjanmilan commented 9 years ago

I was looking for the same feature. This can be done in angular version, I thought it can be done with bootstrap too.

sambhav-caroobi commented 8 years ago

This is sad. I had to move away from X-Editable for the same reason. :( 👎

Shaker-Hamdi commented 6 years ago

@sambhav-caroobi What did you use instead? I'm looking for the same thing.

rayoffleon commented 4 years ago

Almost 2020 and still the same here :(

Nanzitos commented 3 years ago

Eu mesmo tive que fazer o tratamento no back-end!

Alguma dica de outro editable que faça esse segundo save?