I cant seem to find a ReadOnly property on TXDataWebDataSet or TWebDataSource.
- Is there a built in routine to make linked data controls Readonly?
- If not, is there a list of controls linked to either of them?
I cant seem to find a ReadOnly property on TXDataWebDataSet or TWebDataSource.
I tried TXDataWebDataSet.DisableControls
So I am using this (for other users)
class procedure THtml.Disable_Controls (const AId : string);
begin
asm
const container = document.getElementById(AId);
const formControls = container.querySelectorAll('input, select, textarea');
formControls.forEach(control => {control.disabled = true;});
end;
end;
It takes the Id of the container div. And works like magic. I didn't want the buttons to be disabled, if you do, add button to the list.