DataForm Message
The DataFormMessage mimics the RadDataForm control for displaying its data. It exposes the following properties:
-
DisplayPosition
—This property is of the type of theMessageDisplayPosition
and allows you to specify the position of the message. -
Author
—The author of the message. -
Item
—This property holds the object that the DataFormMessage will edit. -
CreationDate
—This property holds a DateTime object of the message's creation date. -
PropertyNames
—This property is of the type ofIEnumerable<string>
. It holds the names of the properties of the object passed to theItem
property.
Defining a DataFormMessage
Club chelsea = new Club()
{
Name = "Chelsea",
StadiumCapacity = 42055,
Established = new DateTime(1905, 1, 1)
};
List<string> listProperties = new List<string>
{
"Name",
"StadiumCapacity",
"Established"
};
DataFormMessage dataFormMessage = new DataFormMessage(MessageDisplayPosition.Inline, this. currentAuthor, chelsea, listProperties);
this.chat.AddMessage(dataFormMessage);