Editor fields

Editor fields

mike_jhmike_jh Posts: 2Questions: 1Answers: 0

I'm doing some custom server side handling for the inline editor, there's only a couple of fields that I allow to be edited and have only declared these in the datatables editor initialisation whereas the datatables initialisation has additional fields.

When I return the JSON from the server to the client only the editable fields are sent back but I'm getting an error message 'Requested unknown parameter 'xxxx' for row 1, column 7', is this because I need to send back all the field values?

Answers

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    Correct - the client-side expects the full data for the row to be returned. This is to allow for server-side computed values to be shown.

    Allan

  • mike_jhmike_jh Posts: 2Questions: 1Answers: 0

    Thanks Allan, however the inline editing only seems to be sending the edited field even if I add all the others as hidden fields, is there some configuration I need to add for it to post all the fields to the server?

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    Yes, if you want it to send all change, use the submit option for form-options set to be allIfChanged. There is an example here.

    Allan

This discussion has been closed.