Delete Row and submit every that was effects by it

Delete Row and submit every that was effects by it

jmccolgan93jmccolgan93 Posts: 7Questions: 5Answers: 0

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

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    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

  • jmccolgan93jmccolgan93 Posts: 7Questions: 5Answers: 0

    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?

  • kthorngrenkthorngren Posts: 20,142Questions: 26Answers: 4,736

    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

Sign In or Register to comment.