Class ServiceInvokeEventArgs
Provides data for the ServiceInvoking
event, triggered before a service request is sent from the Pivot Table to the server.
This includes information about the action being performed, the current report configuration, and any custom parameters used for the request.
Inheritance
Namespace: Syncfusion.Blazor.PivotView
Assembly: Syncfusion.Blazor.dll
Syntax
public class ServiceInvokeEventArgs : Object
Remarks
Use this event to inspect or modify the request before it is sent to the server. You can cancel the operation if specific conditions are not met.
Constructors
ServiceInvokeEventArgs()
Declaration
public ServiceInvokeEventArgs()
Properties
Action
Gets or sets the action being performed in the Pivot Table, such as "Fetch", "Sort", "Filtering", "DrillThrough", etc. This helps identify the context of the request.
Declaration
public string Action { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string indicating the operation that triggered the service request. |
Cancel
Gets or sets a value indicating whether the service request should be canceled before being sent to the server.
If set to true
, the request will be aborted and the Pivot Table will not be updated.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Use this property to prevent the Pivot Table from initiating a service call under certain conditions.
CustomProperties
Gets or sets additional custom parameters that can be sent with the service request. These can be used to pass extra context for operations such as custom filtering, aggregation, or external state.
Declaration
public object CustomProperties { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object containing key-value pairs used to customize the request sent to the server. |
Remarks
This can be used to send additional business data or filtering options to influence the response from the server.
DataSourceSettings
Gets or sets the current pivot report settings, including rows, columns, values, filters, and other data source configurations required for server-side processing.
Declaration
public DataOptions DataSourceSettings { get; set; }
Property Value
Type | Description |
---|---|
DataOptions | A DataOptions instance representing the current state of the Pivot Table's data source settings. |
Guid
Gets or sets a unique identifier for the current service request. This identifier can be used for correlating responses, validating operations, or debugging.
Declaration
public string Guid { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing a GUID associated with the request. |
Remarks
Useful for associating requests with specific user interactions or tracking diagnostics.