Is it possible to disable nested datatables in Editor?

Is it possible to disable nested datatables in Editor?

BjornHaBjornHa Posts: 36Questions: 6Answers: 0
edited September 2021 in DataTables

Trying to disable one date field and one nested datatable field in Editor.

if (this.val( 'agreements.submitted' ) == 1) { detaileditor.field('agreements.startDate').disable(); }

if (this.val( 'agreements.submitted' ) == 1) { detaileditor.field('agreements.customerID').disable(); }

This works for the date field, but not for the nested datatable.

Using Editor 2.0.5 and DataTables 1.11.1.

KR,
Björn Hasselberg

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    Answer ✓

    It will be a built in feature in 2.0.6, but if you need it before then, see this thread which is asking the same thing and has a workaround.

    Allan

  • BjornHaBjornHa Posts: 36Questions: 6Answers: 0
    edited September 2021

    The workaround does the important stuff of disabling the buttons.
    However, the search field is still active (very minor), just FYI.

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin

    I'd wondered about that, but I didn't see any problem with that ability since you can't actually change the value. Happy to take feedback from yourself and others on it though!

    Allan

  • BjornHaBjornHa Posts: 36Questions: 6Answers: 0

    I would personally prefer it to be disabled. When editor is opened, it focuses on the current selected item as it should. If an end user enters anything in the search field not matching selection, the list visually seems to lose focus.
    As stated I see this as very minor, but still a source of confusion for users that are less proficient with computer systems.
    KR,
    Björn H

Sign In or Register to comment.