Hi,
When I have a comboboxitem for an enum with validateOnExit to true then Smartclient will show a validation error when clicking in the picklist. This can be reproduced through this example:
http://www.smartclient.com/index.jsp#listComboBox
To reproduce:
1) set this in the first formitem:
validateOnExit: true,
type: 'enum',
2) try it, type for example the string Ac
3) one value is shown in the picklist: Active
4) select it using the mouse
5) a validation error is shown although a valid option has been chosen
It seems that the click in the picklist fires the blur event on the field, resulting in a validation being done before the value actually gets selected.
Is there a different way of doing this?
gr. Martin
When I have a comboboxitem for an enum with validateOnExit to true then Smartclient will show a validation error when clicking in the picklist. This can be reproduced through this example:
http://www.smartclient.com/index.jsp#listComboBox
To reproduce:
1) set this in the first formitem:
validateOnExit: true,
type: 'enum',
2) try it, type for example the string Ac
3) one value is shown in the picklist: Active
4) select it using the mouse
5) a validation error is shown although a valid option has been chosen
It seems that the click in the picklist fires the blur event on the field, resulting in a validation being done before the value actually gets selected.
Is there a different way of doing this?
gr. Martin
Comment