-
11 Apr 2012 3:48 AM #1
FileUploadField has no events to handle
FileUploadField has no events to handle
Unless I missed them, I see no specific events to watch / handle for the FileUploadField component.
I see it has an internal onChange handler, but it doesn't fire an external event to be caught.
I would appreciate a SelectEvent or a ChangeEvent to be fired when the user selects a file.
It is useful eg. to validate a form only when a file is chosen. Currently, I have to check the length of the value of the field in the SelectEvent of the OK button, which isn't elegant. I want to deactivate the button and validate it only when all fields are valid, including the FileUploadField.
-
11 Apr 2012 4:28 PM #2
Thanks for the report. I've filed an API review bug against the team. Once we make any chances, I'll update this thread.
-
16 Apr 2012 5:57 PM #3
FileUploadField now implements HasChangeHandlers. In addition, FileUploadField now supports allowBlank and will show validation errors.
Changes are in SVN.
-
4 May 2012 3:24 PM #4
The fix for this bug has been included in the public release of Sencha GXT 3.0.0. You'll be able to observe this change in the GXT source. Although we're confident that this issue has been resolved, please reply here (or start a new bug thread linking to this one) if you continue to notice issues.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTGWT-1894
in
3.0.


Reply With Quote