Search code examples
smartgwtlistgriddynamicform

Why can't you add a EditorExit Handler to a DynamicForm or FormItem?


This handler only exist for a ListGrid.

But if you look at the docs for DynamicForm.setValidateOnExit(), it says:

If true, form items will be validated when each item's "editorExit" handler is fired as well as when the entire form is submitted or validated.

Note that this property can also be set at the item level to enable finer granularity validation in response to user interaction - if true at either level, validation will occur on editorExit.

So how can we add a EditorExitHandler to a DynamicForm or a FormItem?

EDIT :

I want to create an error panel below the form to show all errors dynamically. Each FormITem has the possibility to validate on Exit but I do not know how to capture this validation event to check if the error panel should be updated or not.


Solution

  • After some research, I still don't find a convincing answer. I guess it must a dev requirement