Announcement

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

    UploadItem is cleared when enabling SubmitItem

    I have an UploadItem and a SubmitItem. I want the SubmitItem to be disabled until the user chooses a file in the UploadItem. Using a listener on the UploadItem, I was able to programmaticly set the SubmitItem to be enabled after a file is selected. Unfortunately, when the page is redrawn (after SubmitItem was enabled), the file chosen in the UploadItem is cleared. How do I stop the UploadItem from clearing when enabling the SubmitItem?

    I am using SmartGWt 2.1 and tested in IE8 and Firefox 3.5.

    Thanks!

    #2
    Your SubmitItem.enable() call is causing the entire form to refresh? Can you post your minimal code example.

    Comment

    Working...
    X