
I am toying around with the Chat UI and trying some different things out to see how they work, and to figure out what to use in production..
When using an ItemConverter, it seems to work great in instances where one input item results in one TextMessage, but what about in situations where one item may require 2 outputs? Can this be handled with an ItemConverter? (Its media attachments to a message)
public class MessageChatItemConverter : IChatItemConverter
{
public ChatItem ConvertToChatItem(object dataItem, ChatItemConverterContext context)
{
Message message = (Message)dataItem;
if (message.IsMMS.HasValue && message.IsMMS.Value == true)
{
var newMediaMessage = new ImageMessage()
{
ImageSource = null,
Author = message.IsInbound.HasValue && message.IsInbound.Value ? message.Conversation?.ContactAuthor : message.Conversation?.MtiAuthor,
Text = string.Empty,
Data = message,
};
if (message.Media?.Count > 1)
{
Utilities.MainThreadMessage("Warning", $"Multiple media messages are not supported: {message.MessageID} ({message.Media.Count})");
}
else if (message.Media?.Count == 0)
{
Utilities.MainThreadMessage("Warning", $"No media loaded: {message.MessageID}");
}
else
{
byte[]? imageBytes = message.Media?[0]?.ImageBytes;
if (imageBytes == null)
{
Utilities.MainThreadMessage("Warning", $"No image bytes loaded: {message.MessageID}");
}
else
{
newMediaMessage.ImageSource = ImageSource.FromStream(() => new MemoryStream(imageBytes));
}
}
return newMediaMessage;
}
TextMessage textMessage = new TextMessage()
{
Data = message,
Text = (message.IsMMS.HasValue && message.IsMMS.Value == true) ? "<Media Message>" : string.IsNullOrEmpty(message.Body) ? "<No Message>" : message.Body,
Author = message.IsInbound.HasValue && message.IsInbound.Value ? message.Conversation?.ContactAuthor : message.Conversation?.MtiAuthor,
};
return textMessage;
}Added a RadCollectionView to an app and it's causing crashes on iOS devices (but not the simulator) whenever data is loading or finished loading. Near as I can tell, the crash is occurring because of XAML binding failures. I've attached a sample project which shows the failures (you might have to scroll the collectionview to see them). The data still appears, though.
The actual app has a retrieve button on the screen that the user taps after entering some retrieval arguments. I can see data being populated in the RadCollectionView followed by an immediate crash on the physical device.

Good morning,
Is it possible to always default to the Time selection when the picker is opened instead of the date?
When I first open the picker it looks like this:
If I switch to the Time selection and close out of the same picker and open it again it's on the Time selection:
I would like for the picker to always open on the time selection, thank you!
I implemented single tap for editing cells in Datagrid, based on this question, which renders tapping to select a row in the datagrid unusable. I was thinking on using a boolean column with a checkbox to select the rows and be able to delete them with a button click.
Is this possible? In the sample code provided with Telerik, I see that if you use a boolean column it changes the box to a string that says "True" or "False". I do not want that, so is there any way the box can be kept?
Thanks
HI,
I have installed MAUI controls but cannot use them in my MAUI Blazor hybrid razor pages.
Is there a way of getting the razor page to see the MAUi control or are they for xaml application use only?

How can I style how the text cell appears when editing the value?
It currently looks like this:
I want it to be transparent with black text
Hi,
Testing the Datagrid, I see that you have to double tap (or click on WIndows) to select a cell for editing.
Is there a way for the user to only click the cell once to enter edit mode, or any workaround for this? The current flow is a bit counter intuitive.
Thanks

I want to be able to handle when a user does a long press on a row, and get the data item as the parameter to the command. Is there a way to this already, or is the only solution to create a custom behavior that uses a custom gesture?
I have tried using community toolkit touchbehavior, since it is a platform behavior it does not have reference to the grid or data item. Binding the SelectedItem in the view model does not get set in time -- the value in the view model is null when the command fires. I also tried Binding the CommandParameter to the SelectedItem, binding to the dataGrid by reference, which is null in the command parameter as well.
Any suggestions are welcomed, thanks for reading.
