Class ActionCompleteEventArgs<TItem>
Event argument for completion of remote or local data fetches in Syncfusion dropdown controls (ComboBox, DropDownList, etc.).
Inheritance
Namespace: Syncfusion.Blazor.DropDowns
Assembly: Syncfusion.Blazor.dll
Syntax
public class ActionCompleteEventArgs<TItem> : Object
Type Parameters
Name | Description |
---|---|
TItem | Type of individual item in the completion result set. |
Remarks
Use ActionCompleteEventArgs<TItem> to examine result count, data collection, event type, and post-fetch status, including cancellation.
Examples
void OnActionComplete(ActionCompleteEventArgs<MyType> args) {
if (args.Cancel) {
// Prevent binding
} else if (args.EventName == "load") {
ResultsView = args.Result.ToList();
}
}
Constructors
ActionCompleteEventArgs()
Declaration
public ActionCompleteEventArgs()
Properties
Cancel
Indicates whether the completion event should be cancelled (true blocks UI bind/update).
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Count
Gets or sets the total count of records related to the current completion.
Declaration
public double Count { get; }
Property Value
Type | Description |
---|---|
System.Double | Total record count as double. |
EventName
Gets or sets the name of the completed event or action for which this result was triggered.
Declaration
public string EventName { get; }
Property Value
Type | Description |
---|---|
System.String | A string label for the completed event. |
Query
Gets or sets the query used to fetch the data. This can be inspected for advanced scenario troubleshooting.
Declaration
public Query Query { get; }
Property Value
Type | Description |
---|---|
Query | A Query instance for further inspection. |
Result
Gets or sets the collection of data items resulting from the completion event.
Declaration
public IEnumerable<TItem> Result { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TItem> | An enumeration of |