Disable list control buttons/editing

Hi

I have a list control in a form with inline editing.

After a certain status is passed, I want to disable the add new and editing functions so that the list contents are display only.

I can hide the Add New button, but can't work out how to stop the items being edited or deleted.

Is there a '.disabled' setting for the list control similar to fields?

Thanks
Nick

Hello @njones,

You can make List or Library control read-only with the following code:

fd.control('SPDataTable0').readonly = true;

1 Like

Thanks @mnikitina , that worked perfectly.

1 Like

Can this be done with a normal Data Table control?

Hello @abolam,

Yes, you can disable DataTable control with this code:

fd.control('DataTable0').disabled = true;