Delete Row and submit every that was effects by it
Delete Row and submit every that was effects by it
jmccolgan93
Posts: 19Questions: 11Answers: 0
in Editor
hey guys,
so I want to add an inline delete button (ideally with a confirm window) that will delete the row from my database and also submit everything below the deleted row so I can update the order number of all those fields.
Answers
This example here demonstrates how to have icons within the row. When the row is deleted, that data is submitted to the server - see the Ajax data tab below the table,
Colin
all my rows have a field of what order they're in (used of other internal stuff). id like it so when I delete a row it submits all the rows below the row that got deleted so I can update their order number. does that make sense?
I wonder if it would be easier to just handle this at the server. Since you have the ID being deleted can you use that to make the updates you want? If you are using the Editor and the Datatables supplied server code you can use the server side preRemove event.
Kevin