Editor inline edit and checkbox do not behave the same wrt "submit allIfChanged"

Editor inline edit and checkbox do not behave the same wrt "submit allIfChanged"

gravstengravsten Posts: 14Questions: 5Answers: 0

Description of problem:
I configured the Editor with submit: 'allIfChanged' for a checkbox change and inline edit.
Yet, a checkbox change only results in sending the checkbox state, not the whole row as I had expected.

I worked around the problem (eliminating the requirement for complete row data to update a single field).
But I wanted to bring this up here in case it were a bug...
If it is a problem with my configuration (see below), I'll be relieved.

      .on('change', 'input.editor-ok', function () {
        editor.edit(this.closest('tr'), false, {
            onReturn: 'submit',
            submit: 'allIfChanged',
            onFieldError: 'focus',
            scope: 'row',
            drawType: 'page',
          })
          .set('ok', this.checked ? 1 : 0)
          .submit();
      })
      .on('click', 'tbody td.editable', function (e) {
        editor.inline(this, {
          onReturn: 'submit',
          submit: 'allIfChanged',
          onFieldError: 'focus',
          scope: 'row',
          drawType: 'page',
        });
      })

Answers

  • allanallan Posts: 61,849Questions: 1Answers: 10,134 Site admin

    Are you able to give me a link to the page so I can attempt to trace it through? I'm not immediately aware of a bug in this area, but also I don't immediately see an error in the configuration.

    Allan

  • colincolin Posts: 15,163Questions: 1Answers: 2,588

    @gravsten This example may help you reproduce the issue. Currently the submission is sending the expected data, i.e. all of it, but you could possibly use that as a starting point.

    Colin

  • colincolin Posts: 15,163Questions: 1Answers: 2,588

    @gravsten Just to check, our accounts aren't showing that you have a license or on a trial. Is the license registered to another email address? Please can let us know so we can update our records and provide further support.

    Colin

Sign In or Register to comment.