Announcement

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

    How to change the the border color for SelectItem

    I am using SmartGWT power edition 4.0.
    I want to change the SelectItem border color to red. If I set it using FormItem.setTextBoxStyle(redStyle), the border doesn't include the pickup icon. If I set it using FormItem.setCellStyle(redStyle), the border is bigger than the SelectItem. Which API should I use to set the item border style?

    #2
    The SelectItem is constructed so that the right-hand side of the border is provided by the pickerIcon itself. To change that border color, you need to provide a new image for the pickerIcon. Then, assuming this is intended to happen on error, you need to add pickerIconProperties that make the pickerIcon use a different image for error state - see FormItemIcon.

    Comment

    Working...
    X