Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with ColorItem

    I'm using SmartClient version: v90p_2013-09-20_LGPL.
    My problem is with the ColorItem in a DynamicForm. I have the field, to be filled with a hexdecimal value, and besides it a ColorPicker.
    If I have a color setted in this field (like #000222, for example), and try to change it, putting an invalid value, like #000222abc, the field gets corrected by itself, changing to the old value, that was right. The problem is that I want to validate it, and show a message. But, with the field going back to the old (and right) value, I can't do this validation.
    There is a way to avoid this behavior? I tried "fomatOnBlur" and "formatOnFocusChange" but doesn't work.
    It occurs at all browsers.

    Thanks!

    #2
    This behavior is not currently configurable. However, you could build your own variant of this control that did not reject invalid values by starting from a TextItem and using a FormItemIcon to launch the ColorPicker widget.

    Comment

    Working...
    X