Unplanned
Last Updated: 17 Mar 2026 14:57 by Martin Ivanov
Martin Ivanov
Created on: 17 Mar 2026 14:57
Category: Chat
Type: Bug Report
0
Chat: The DataObjectResult property of the MessageResultEventArgs is empty in the ReportMessageResult event when using ListMessage with multiple selection

The MessageResultEventArgs' DataObjectResult property is empty when the ReportMessageResult event is raised for the SelectedItems property. The SelectedItems property is reported when the event is raised for a ListMessage with multiple selection enabled.

To work this around, instead of the DataObjectResult property, use the SelectedItems of the ListView control which presents the items in the ListMessage.

 private void RadChat_ReportMessageResult(object sender, MessageResultEventArgs e)
 {
     if (e.Message is ListMessage lm && e.PropertyName == nameof(ListView.SelectedItems))
     {
         var listView = this.chat.ChildrenOfType<ListView>().FirstOrDefault(x => x.DataContext == e.Message);
         if (listView != null)
         {
             IList<object> selection = listView.SelectedItems;
         }
     }
 }

0 comments