Announcement

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

    SelectItem setMultiple and enabling Save Button

    SmartGWT 2.5-Patch, Firefox 7.0.1

    We've tried having a convention on our forms where an Apply button for saving changes is disabled until something is changed. Works well for the most part but we've ran into an anomaly when we have a SelectItem that using setMultiple. When we open the item and check/uncheck any selection, that counts as a change so our Apply button is enabled. But the SelectItem is still open so clicking on the Apply button just closes the SelectItem and one has to click on the Apply button a second time to save changes. Only shows up when setMultiple is in play since the SelectItem is automatically closed when only a single item can be selected.

    The need to click twice on Apply in this situation is a bit confusing and we're not clear on how to resolve this. There doesn't seem to be a way programatically to close the SelectItem when clicking the Apply button. Looking for thoughts/ideas on how to improve what we're doing here.

    Ed Reddy

    #2
    SelectItem in general, multiple or not, blocks the click that closes it. This is standard behavior for drop-down controls in general (eg, pervasively in Windows).

    Comment

    Working...
    X