All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hi.
When we want add a message, we create an instance from ChatTextMessage class or ChatCardMessage class or ...
How can we access to these objects in RadChat1_ItemFormatting event? In fact I want too access to ChatTextMessage Object via TextMessageItemElement.
Thanks alot.
private
void
radChat1_ItemFormatting(
object
sender, ChatItemElementEventArgs e)
{
TextMessageItemElement textItemElement = e.ItemElement
as
TextMessageItemElement;
if
(textItemElement !=
null
)
ChatTextMessage msg = textItemElement.Data.Message
ChatTextMessage;
}