I have a DynamicForm that we disable() and enable() at various times. All good - when it's disabled, all the form items show as greyed out, as I would expect.
Except for one form item - it's a DataSourceDateField, which I want to be read-only, so I've used setCanEdit(false) to make it read-only. That makes it just show a text value (like 15/12/2010), which is fine. But that text value is always shown in black text, as if it were editable, even when the form is disabled (see the attached file FormSection.jpg for a screenshot of a bit of the form showing what I mean).
How do I make the date field look disabled? I've tried explicitly using disable() on the form item itself - doesn't help (note that I use setShowDisabled(true) to make sure that the form item should be re-styled to indicate its disabled state). Nothing I try works - am I missing something? Or can this field not change to look disabled?
Except for one form item - it's a DataSourceDateField, which I want to be read-only, so I've used setCanEdit(false) to make it read-only. That makes it just show a text value (like 15/12/2010), which is fine. But that text value is always shown in black text, as if it were editable, even when the form is disabled (see the attached file FormSection.jpg for a screenshot of a bit of the form showing what I mean).
How do I make the date field look disabled? I've tried explicitly using disable() on the form item itself - doesn't help (note that I use setShowDisabled(true) to make sure that the form item should be re-styled to indicate its disabled state). Nothing I try works - am I missing something? Or can this field not change to look disabled?
Comment