Datatables editor - disable rows

Datatables editor - disable rows

mikducmikduc Posts: 25Questions: 7Answers: 0

Is there a simple way to disable all table rows (make them read only) based on the value of a variable on the form?

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    edited September 2019

    Hi @mikduc ,

    You could do that with preOpen - you could have a check in there and if the condition is met return false to stop the edit or remove happening. See this example here, it's making all rows with the office of 'London' read-only.

    Cheers,

    Colin

This discussion has been closed.