Field Focus

“Since SmartClient is AJAX, all operations are asyncronous.
Due to this, when any validation is performed, it will not be possible to retain the focus within the same control till the serverside validation is complete”

We have two fields, Client Code and Client Description. Both are mandatody fields. In the client code field, enter an invalid code and press TAB key. The client description field will get the focus before the validation for a valid client code is performed. If the focus is manually set back to the client code field in case of an invalid code, the mandatory check validation for the client description field is fired.

Please advise.

If you are doing validation via an RPC or similar, set showPrompt:true to make it block user interaction. Then the user cannot input into the second field in the meantime.