Is it possible to disable nested datatables in Editor?
Is it possible to disable nested datatables in Editor?
BjornHa
Posts: 36Questions: 6Answers: 0
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
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
The workaround does the important stuff of disabling the buttons.
However, the search field is still active (very minor), just FYI.
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
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