Hello,
how can I prevent the user can exit the form?
private
void
AddressDetails_ValidatingItem(
object
sender, System.ComponentModel.CancelEventArgs e)
{
Address address =
this
.AddressDetails.CurrentItem
as
Address;
try
{
if
(address.LastName ==
null
)
{
throw
new
ValidationException(
"Das Feld Nachname darf nicht leer sein."
);
}
//Save Changes
SaveChanges();
}
catch
(ValidationException ex)
{
RadWindow.Alert(ex.Message);
}
}