Skip to main content

ChatCancelableEventArgs

Namespace: Wisej.Web.Ext.Syncfusion2

Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)

Base event data for chat events that support canceling the underlying client action.

public class ChatCancelableEventArgs : ChatWidgetEventArgs

Constructors​

Instance member ChatCancelableEventArgs(cancel, name, data)​

Initializes a new instance of the ChatCancelableEventArgs class.

NameTypeDescription
cancelBooleanThe initial value of Cancel, as reported by the browser.
nameStringThe name of the client event.
dataObjectThe raw event data received from the browser, or null.

Example:

The following example creates the event data for a client event that was not canceled in the browser.

var args = new Chat.ChatCancelableEventArgs(false, "suggestionClick", null);
args.Cancel = true;

Properties​

Instance member Cancel​

Boolean: Gets or sets whether server-side follow-up work should be skipped for this event.

Wisej widget events are delivered asynchronously after the browser event is raised. Use this property to stop wrapper-side state updates, but do not rely on it to synchronously prevent Syncfusion's already-started client action unless the specific event is documented otherwise.