Telerik Forums
UI for .NET MAUI Forum
1 answer
93 views
Greetings, how can I set when loading a DataGrid one of the table properties in the disctinct value IsSelected = true, I know there are FilterDescriptor but it don't suit me as they set the value to filter and I would like to see the display above in the view with a checkbox.

DistinctValuesFilterDescriptor is work?
Didi
Telerik team
 answered on 16 Aug 2024
0 answers
88 views

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;
        }

lukerobi
Top achievements
Rank 1
Iron
 asked on 15 Aug 2024
1 answer
383 views

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.

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 08 Aug 2024
1 answer
143 views

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!

Yana
Telerik team
 answered on 08 Aug 2024
1 answer
121 views
So I am running into an issue where the content of the listview may be updated or changed, but the sorting does not reflect the changes.  Is there a way trigger the listview to resort the list without clearing the sorting descriptors and adding them back?
Yana
Telerik team
 answered on 07 Aug 2024
1 answer
147 views

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

Didi
Telerik team
 answered on 07 Aug 2024
1 answer
160 views

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?

Didi
Telerik team
 answered on 05 Aug 2024
3 answers
126 views

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

Yana
Telerik team
 answered on 02 Aug 2024
1 answer
170 views

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

Didi
Telerik team
 answered on 01 Aug 2024
1 answer
196 views

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.

Didi
Telerik team
 answered on 01 Aug 2024
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?