@@ -9,6 +9,7 @@ namespace Comal.Classes
{
public EventLink Event { get; set; }
+ [EditorSequence(1)]
public EmployeeLink Employee { get; set; }
static EventSubscriber()
@@ -263,6 +263,14 @@ public class EventGrid : DynamicDataGrid<Event>
ev.Data = "";
}
+ else
+ {
+ // We have to 'cancel' by just re-deserialising.
+ if(ev.Data is not null && ev.Data.Length != 0)
+ EventData = EventUtils.Deserialize(ev.Data);
+ }
protected override void Reload(Filters<Event> criteria, Columns<Event> columns, ref SortOrder<Event>? sort, CancellationToken token, Action<CoreTable?, Exception?> action)