Datatables jeditable plugin : Set manually the ID of a row
Datatables jeditable plugin : Set manually the ID of a row
Hi everybody,
I have a table to edit with Datatables jeditable plugin, but I don't find the way of setting the id of the current row manually.
My primary key isn't the first column, but the 11th !
So when I edit one cell, the plugin send the value of the first cell as the "id" parameter.
How can I declare that "the id for my rows are at the 11th column" ?
An exemple to illustrate : (this is the POST I get with firebug)
columnId 2
columnName Civilité
columnPosition 2
id ABDALLAH <---- this is the value of my first column, I want the value of my 11th column by default...
rowId 0
value M
Thanks in advance for your help !
I have a table to edit with Datatables jeditable plugin, but I don't find the way of setting the id of the current row manually.
My primary key isn't the first column, but the 11th !
So when I edit one cell, the plugin send the value of the first cell as the "id" parameter.
How can I declare that "the id for my rows are at the 11th column" ?
An exemple to illustrate : (this is the POST I get with firebug)
columnId 2
columnName Civilité
columnPosition 2
id ABDALLAH <---- this is the value of my first column, I want the value of my 11th column by default...
rowId 0
value M
Thanks in advance for your help !
This discussion has been closed.