|
@@ -164,6 +164,7 @@ public partial class DynamicEditorGrid : UserControl, IDynamicEditorHost
|
|
|
public event OnAfterEditorValueChanged? OnAfterEditorValueChanged;
|
|
|
|
|
|
public event OnReconfigureEditors? OnReconfigureEditors;
|
|
|
+ public event OnCreateEditorControl? OnCreateEditorControl;
|
|
|
|
|
|
public event OnDefineLookupFilter? OnDefineFilter;
|
|
|
|
|
@@ -204,6 +205,11 @@ public partial class DynamicEditorGrid : UserControl, IDynamicEditorHost
|
|
|
|
|
|
#region Edit Page
|
|
|
|
|
|
+ private void CreateEditorControl(string column, BaseEditor editor, IDynamicEditorControl control)
|
|
|
+ {
|
|
|
+ OnCreateEditorControl?.Invoke(column, editor, control);
|
|
|
+ }
|
|
|
+
|
|
|
public class DynamicEditPage : ContentControl, IDynamicEditorPage
|
|
|
{
|
|
|
|
|
@@ -311,6 +317,8 @@ public partial class DynamicEditorGrid : UserControl, IDynamicEditorHost
|
|
|
element.SetValue(Grid.RowProperty, Grid.RowDefinitions.Count - 1);
|
|
|
element.SetValue(Grid.ColumnProperty, 1);
|
|
|
Grid.Children.Add(element);
|
|
|
+
|
|
|
+ EditorGrid.CreateEditorControl(columnName, editor, element);
|
|
|
}
|
|
|
}
|
|
|
|