Hello Michael,
In the scenario where you don’t have access to the html template, I’d recommend getting the checkbox with ViewChild where static is set to false. This will ensure that the element would be accessed only if it exists in the html, however, it will not be available in the onInit event. This is the updated sample demonstrating the behavior. In the example I’ve used a setter method that applies the disabled property whenever the checkbox exists in the view. It is wrapped within a setTimeout function to prevent an error for multiple changes in a single change event.
Please test it on your side and let me know if you need further assistance.
Regards,
Aleksandar Atanasov,
Infragistics.