Editor: idSrc for returned JSON on Edit

Editor: idSrc for returned JSON on Edit

patdavidpatdavid Posts: 5Questions: 2Answers: 0

I've got a case where I've got a primary key for a table called msn_id.
In my initialization of Editor, I can tell it this with: idSrc: 'msn_id' and it works (edits will pass the msn_id as expected to the server).

However, the JSON response has the msn_id key/value, but Editor possibly doesn't see it (as it removes that row from the table rather than showing the updated data). Is this expected (or easy to test)?

Answers

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947

    However, the JSON response has the msn_id key/value, but Editor possibly doesn't see it

    Does it match the original msn_id?

    Maybe the original is numeric and the response is a string or visa versa.

    This doc shows the sent parameters and expected response structure. Is the response correct?

    Are you using a Datatables supplied server script for editing?

    Please post the request parameters and JSON response collected from the browser's network inspector tool.

    Kevin

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947
    edited January 10

    Another possibility is that the Edited row is returned and updated in the table but due to sorting its not displayed on the current page.

    Kevin

Sign In or Register to comment.