diff --git a/Blazor.WebForm.Components.1.1.9.7.nupkg b/Blazor.WebForm.Components.1.1.9.7.nupkg
deleted file mode 100644
index 7d32597..0000000
Binary files a/Blazor.WebForm.Components.1.1.9.7.nupkg and /dev/null differ
diff --git a/Blazor.WebForm.Components.1.1.9.8.nupkg b/Blazor.WebForm.Components.1.1.9.8.nupkg
new file mode 100644
index 0000000..1f4151e
Binary files /dev/null and b/Blazor.WebForm.Components.1.1.9.8.nupkg differ
diff --git a/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj b/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj
index 1370abb..ec8e383 100644
--- a/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj
+++ b/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj
@@ -4,7 +4,7 @@
net5.0
true
Blazor.WebForm.Components.pfx
- 1.1.9.7
+ 1.1.9.8
asp
Jurio li
Blazor.WebForm.Components
@@ -17,7 +17,7 @@
-
+
diff --git a/Blazor.WebForm.Components/FreeDataSource.razor b/Blazor.WebForm.Components/FreeDataSource.razor
index ba1e16a..a62c231 100644
--- a/Blazor.WebForm.Components/FreeDataSource.razor
+++ b/Blazor.WebForm.Components/FreeDataSource.razor
@@ -8,9 +8,12 @@
@code {
private OnExecuteSorted _executeSorted;
private OnExecuteUpdated _executeUpdated;
+ private OnExecuteUpdatedAsync _executeUpdatedAsync;
private OnExecuteSelected _executeSelected;
private OnExecuteDeleted _executeDeleted;
+ private OnExecuteDeletedAsync _executeDeletedAsync;
private OnExecuteInserted _executeInserted;
+ private OnExecuteInsertedAsync _executeInsertedAsync;
[Parameter]
public bool AutoSort
@@ -93,6 +96,27 @@
}
}
+ [Parameter]
+ public OnExecuteUpdatedAsync OnExecuteUpdatedAsync
+ {
+ get
+ {
+ return _executeUpdatedAsync;
+ }
+ set
+ {
+ if (value != null)
+ {
+ this.Control.ExecuteUpdatedAsync += InvokeExecuteUpdatedAsync;
+ }
+ else
+ {
+ this.Control.ExecuteUpdatedAsync -= InvokeExecuteUpdatedAsync;
+ }
+ _executeUpdatedAsync = value;
+ }
+ }
+
[Parameter]
public EventHandler OnDataSourceChanged
{
@@ -148,6 +172,27 @@
}
}
+ [Parameter]
+ public OnExecuteInsertedAsync OnExecuteInsertedAsync
+ {
+ get
+ {
+ return _executeInsertedAsync;
+ }
+ set
+ {
+ if (value != null)
+ {
+ this.Control.ExecuteInsertedAsync += InvokeExecuteInsertedAsync;
+ }
+ else
+ {
+ this.Control.ExecuteInsertedAsync -= InvokeExecuteInsertedAsync;
+ }
+ _executeInsertedAsync = value;
+ }
+ }
+
[Parameter]
public OnExecuteDeleted OnExecuteDeleted
{
@@ -169,6 +214,27 @@
}
}
+ [Parameter]
+ public OnExecuteDeletedAsync OnExecuteDeletedAsync
+ {
+ get
+ {
+ return _executeDeletedAsync;
+ }
+ set
+ {
+ if (value != null)
+ {
+ this.Control.ExecuteDeletedAsync += InvokeExecuteDeletedAsync;
+ }
+ else
+ {
+ this.Control.ExecuteDeletedAsync -= InvokeExecuteDeletedAsync;
+ }
+ _executeDeletedAsync = value;
+ }
+ }
+
private void InvokeExecuteSorted(object sender, ref IEnumerable enumerable, DataSourceSelectArguments arguments)
{
_executeSorted.Invoke(sender, ref enumerable, arguments);
@@ -179,6 +245,11 @@
_executeUpdated.Invoke(sender, keys, values, oldValues);
}
+ private Task InvokeExecuteUpdatedAsync(object sender, IDictionary keys, IDictionary values, IDictionary oldValues)
+ {
+ return _executeUpdatedAsync.Invoke(sender, keys, values, oldValues);
+ }
+
private IEnumerable InvokeExecuteSelected(object sender)
{
return _executeSelected.Invoke(sender);
@@ -189,8 +260,18 @@
_executeDeleted.Invoke(sender, keys, oldValues);
}
+ private Task InvokeExecuteDeletedAsync(object sender, IDictionary keys, IDictionary oldValues)
+ {
+ return _executeDeletedAsync.Invoke(sender, keys, oldValues);
+ }
+
private void InvokeExecuteInserted(object sender, IDictionary values)
{
_executeInserted.Invoke(sender, values);
}
+
+ private Task InvokeExecuteInsertedAsync(object sender, IDictionary values)
+ {
+ return _executeInsertedAsync.Invoke(sender, values);
+ }
}