Skip to main content

ChatSuggestionClickEventArgs

Namespace: Wisej.Web.Ext.Syncfusion2

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

Provides data for the SuggestionClick event.

public class ChatSuggestionClickEventArgs : ChatCancelableEventArgs

Constructors​

Instance member ChatSuggestionClickEventArgs(text, index, cancel, name, data)​

Initializes a new instance of the ChatSuggestionClickEventArgs class.

NameTypeDescription
textStringThe text of the clicked suggestion.
indexInt32The position of the clicked suggestion in the list, or -1 when it is not available.
cancelBooleanThe initial value of Cancel.
nameStringThe name of the client event, normally suggestionClick.
dataObjectThe raw event data received from the browser, or null.

Example:

The following example, placed in a class derived from Chat, raises SuggestionClick for the first suggestion.

string text = this.Suggestions[0];
this.OnSuggestionClick(new ChatSuggestionClickEventArgs(text, 0, false, "suggestionClick", null));

Properties​

Instance member Index​

Int32: The index of the clicked suggestion.

The value is the zero-based position of the clicked item in the rendered suggestion list, or -1 when the browser does not report it.

Instance member Text​

String: The text of the clicked suggestion.