Class ActionBeginEventArgs
Event argument for data fetch initiation in ComboBox, DropDownList, ListBox, or related Syncfusion dropdown controls.
Inheritance
Namespace: Syncfusion.Blazor.DropDowns
Assembly: Syncfusion.Blazor.dll
Syntax
public class ActionBeginEventArgs : Object
Remarks
ActionBeginEventArgs lets your delegate or event handler examine and optionally cancel, alter, or modify a data fetch operation, query, or server call before it commences.
Examples
void OnActionBegin(ActionBeginEventArgs args) {
if (args.EventName == "load" && args.Query != null) {
// Add extra filter to query
args.Query.AddParams("onlyActive", true);
}
if (args.EventName == "filtering" && ShouldPreventFilter(args.Query))
args.Cancel = true;
}
Constructors
ActionBeginEventArgs()
Declaration
public ActionBeginEventArgs()
Properties
Cancel
Gets or sets whether to cancel the pending data operation (set to true
to prevent fetch/filter).
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
EnableFullLookup
Gets or sets a value indicating if a full data lookup (using the equal operator and not just pre-bound results) is requested or permitted.
Declaration
public bool EnableFullLookup { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Enables strict match requests, which may impact remote performance. Use with care on large data sources.
EventName
Gets the event name or type for which the action is being initiated (such as "filtering", "load").
Declaration
public string EventName { get; }
Property Value
Type | Description |
---|---|
System.String | Name of the event as a string. |
Query
Gets or sets a query object specifying details for the fetch operation; may be altered or inspected prior to data fetch.
Declaration
public Query Query { get; set; }
Property Value
Type | Description |
---|---|
Query | A Query instance indicating required data logic. |