|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
This is called the Validating event of basically any control. You can still implement this logic if you have the need. As a side note, this is one of the options on when data will be updated back to the source OnValidation or OnPropertyChanged. This is just FYI. As for placing logic within a control to prevent the focus from being changed, you can handle or overwrite the OnValidating or OnLeave or something alone those lines to force validation before exiting. Obviously, this will have to be handled within your code as the entire purpose of a BO business logic is to provide all of this at once versus on a field by field basis as you tab through. This is an older technology and is what we did in our legacy systems. There are few instances where we force the user to enter a field before moving on any longer. The only time we take this approach is if other fields will rely on a value from the current field.
|