fixes #17477. Make sure labelFunc is taken into account.
Call set("disabled") and set("readOnly") in startup so children are updated appropriately. Added test cases. Fixes #17399.