London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
I don't think you can use IValidate here, but throwing an exception would halt the operation. maybe not as nice as a warning, but should still work
this
var dto = sender as CatalogRelationDto;
if (dto.CatalogEntryRelation.Any(x => x.RowState != System.Data.DataRowState.Unchanged))
{
throw new InvalidOperationException("this can be done");
}
would show this
Im want to display error message to UI when user change the quantity of package entry.
Im firgured out has a way to validate data of CatalogRelationDto by using ICatalogEvents like this:
But currently im have no idear to show error message to UI like IValidate behavior.
Does any one have some idear?
Thanks alot.