New to Telerik UI for WinFormsStart a free 30-day trial

RadChat's Properties

Updated over 6 months ago
PropertyDescription
ChatElementGets the main chat element.
AuthorGets or sets the current author. This instance is used when is set to true as well as to determine the messages alignment and styling.
AutoAddUserMessagesGets or sets a value indicating whether messages typed by the user will automatically be added as to the chat.
AvatarSizeGets or sets the size of the avatar images.
ShowAvatarsGets or sets whether avatar images will be displayed in the chat window next to messages.
ShowMessagesOnOneSideGets or sets whether messages will be displayed aligned to only one side of the chat window or on both.
TimeSeparatorIntervalGets or sets the time interval between messages that will trigger the automatic addition of a Time separator. If set to no Time separators will be added.

RadChatElement's Properties

PropertyDescription
MessagesViewElementGets the messages view element.
SuggestedActionsElementGets the actions element.
ToolbarElementGets the toolbar element.
InputTextBoxGets the input box.
ShowToolbarButtonElementGets the toolbar button element in the input box.
SendButtonElementGets the send button element in the input box.
OverlayElementGets the overlay element.
OverlayPopupElementGets the overlay popup element.
IsOverlayShownIndicates whether the overlay is shown.
IsPopupOverlayShownIndicates whether the popup overlay is shown.
ChatFactoryGets or sets the chat factory.

Methods

MethodDescription
ShowOverlayShows the provided overlay in the control.
HideOverlayHides any overlays that are currently displayed by the control.
AddMessageAdds a new message to the chat. Typical messages are ChatTextMessage, ChatSuggestedActionsMessage, ChatMediaMessage, ChatCardMessage, and ChatOverlayMessage.

Events

EventDescription
SendMessageOccurs when the user performs an action e.g hits the Enter key, clicks the Send message button, clicks OK on an overlay.
SuggestedActionClickedOccurs when the user clicks on a Suggested Action.
CardActionClickedOccurs when the user clicks on a Card Action.
ToolbarActionClickedOccurs when the user clicks on a Toolbar Action.
TimeSeparatorAddingOccurs after a new message is added. Allows you to decide whether a time separator should be inserted before the currently added message.
ItemFormattingOccurs when the data item of a visual element is changed and the element is prepared for visualization.

See Also

In this article
See Also
Not finding the help you need?
Contact Support