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

  • FormItem change canEdit during use does not change Cell-Style -> SmartGWT Version: 12.0-p20180613

    Hello Everyone

    I have the Problem, that in my Application, if the User does a certain thing, the Enabled/Disabled setting on the FormItem changes.

    Here is an Example of the Problem:

    First the ComboBoxItem on the bottom-right corner is disabled and displayed correctly (the ComboBoxItem above is how it looks when ist enabled)
    Click image for larger version

Name:	FormItem_Disabled.jpg
Views:	1
Size:	7.8 KB
ID:	254076

    If the User changes the Value of the "Zeit 1" ComboBox, the FormItem on the bottom-right corner is enabled

    Click image for larger version

Name:	FormItem_Enabled_wrong.jpg
Views:	1
Size:	8.9 KB
ID:	254077
    As you can see, the "magnifying glass"-Icon has changed and i Also can open the Dropdown-Menu to select a value, but the CellStyle did not change.

    Therefore the Cell is still grey instead of white.

    Does anyone know how i can fix this problem or what Handler i would have to implement?

    Thanks in advance

  • #2
    Typically you can enable and disable FormItems at runtime by calling the setDisabled() API. This should update their appearance.