Declined
Last Updated: 09 May 2024 11:51 by ADMIN
Matt
Created on: 01 May 2024 18:24
Category: UI for .NET MAUI
Type: Bug Report
0
RadDataGrid with UserEditMode="Cell" crashes iOS Simulator when double-clicking text cell

 

Using iOS Simulator (set to iPhone 15 iOS 17.4) - with a DataGrid as below, double-clicking the text cell will crash the app. I have not yet tried on a native device build (not simulator.)


<telerik:RadDataGrid.Columns>
    <telerik:DataGridTextColumn PropertyName="ObjectName" HeaderText="Name"/>
</telerik:RadDataGrid.Columns>

Microsoft Visual Studio 2022 v17.9.6

Microsoft.Maui.Controls 8.0.21

Full Stack Trace:

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1041753b0):0x1041753a0  c0 03 5f d6 c0
03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......
0x1041753b0  e3 00 00 54 fd 7b bf a9 fd 03 00 91 cd e2 ff 97  ...T.{..........
0x1041753c0  bf
03 00 91 fd 7b c1 a8 c0 03 5f d6 c0 03 5f d6  .....{...._..._
.
0x1041753d0  70 0a 80 d2 01 10 00 d4 e3 00 00 54 fd 7b bf a9  p..........T.{..
=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at ObjCRuntime.Messaging:bool_objc_msgSendSuper <0x0009a>
      at UIKit.UIResponder:BecomeFirstResponder <0x000e0>
      at Telerik.Maui.Platform.RadMauiEntry:BecomeFirstResponder <0x0004c>
      at Microsoft.Maui.Platform.ViewExtensions:Focus <0x00024>
      at Microsoft.Maui.Handlers.ViewHandler:MapFocus <0x0007c>
      at <>c__DisplayClass6_0:<Add>b__0 <0x00064>
      at <>c__DisplayClass422_0:<MapFocus>b__0 <0x0006c>
      at Microsoft.Maui.Controls.ViewExtensions:MapFocus <0x0013c>
      at Microsoft.Maui.Controls.VisualElement:MapFocus <0x00144>
      at <>c__DisplayClass2_0`2:<ModifyMapping>g__newMethod|0 <0x000b6>
      at <>c__DisplayClass6_0:<Add>b__0 <0x00064>
      at Microsoft.Maui.CommandMapper:InvokeCore <0x0008c>
      at Microsoft.Maui.CommandMapper:Invoke <0x0005a>
      at Microsoft.Maui.Handlers.ElementHandler:Invoke <0x00086>
      at Microsoft.Maui.ElementHandlerExtensions:InvokeWithResult <0x00040>
      at Microsoft.Maui.Controls.ViewExtensions:RequestFocus <0x0006a>
      at Microsoft.Maui.Controls.
VisualElement:Focus <0x00016>
      at Telerik.Maui.Controls.Compatibility.DataGrid.MasterArranger:ArrangeNode <0x00198>
      at Telerik.Maui.Controls.Compatibility.DataGrid.MasterArranger:Arrange <0x000b0>
      at Telerik.Maui.Controls.Compatibility.DataGrid.RadDataGrid:LateArrange <0x003f4>
      at Telerik.Maui.Controls.Compatibility.DataGrid.RadDataGrid:UpdateUI <0x0018a>
      at Telerik.Maui.Controls.Compatibility.DataGrid.RadDataGrid:ArrangeChildren <0x00266>
      at Telerik.Maui.Controls.RadLayoutManager:ArrangeChildren <0x00036>
      at Microsoft.Maui.Controls.Layout:CrossPlatformArrange <0x0003c>
      at Microsoft.Maui.Platform.MauiView:CrossPlatformArrange <0x0005a>
      at Microsoft.Maui.Platform.MauiView:LayoutSubviews <0x00196>
      at System.Object:runtime_invoke_direct_void__this__ <0x00088>
      at <unknown> <0x00000>
      at <unknown> <0xffffffff>
      at UIKit.UIApplication:xamarin_UIApplicationMain <0x000b8>
      at UIKit.UIApplication:UIApplicationMain <0x0006e>
      at UIKit.UIApplication:Main <0x0015a>
      at MauiSandboxThree.Program:Main <0x0002c>
      at <Module>:runtime_invoke_direct_void_string[] <0x0007e>
      at <unknown> <0x00000>
=================================================================
4 comments
ADMIN
Yana
Posted on: 09 May 2024 11:51

Hello Matt,

Thank you for sending the additional details.

I just found out the exception is related to the following .NET MAUI issue: https://github.com/dotnet/maui/issues/21057.

It seems for the time being .NET MAUI does not support XCode 15.3. As you already mentioned, you can deploy to a real device, or the other option is to use an older emulator (17.2, for example).

I've updated the status of this item to "Declined". Please follow the maui github issue for updates on when this is going to be resolved.

Regards,
Yana
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Matt
Posted on: 08 May 2024 14:36

Hi Yana,

Thank you for the reply. Apologies that I didn't get the entire grid definition posted earlier, I should have added it as a comment, since I could not edit the post after I made it.

I made the RadDataGrid as simple as possible, and the crash still occurs:

<telerik:RadDataGrid
    AutoGenerateColumns="False"
    UserEditMode="Cell"
    ItemsSource="{Binding Path=FieldDataItems}">
    <telerik:RadDataGrid.Columns>
        <telerik:DataGridTextColumn PropertyName="ObjectName" HeaderText="Name"/>
    </telerik:RadDataGrid.Columns>
</telerik:RadDataGrid>

 

Note that "FieldDataItems" is an ObservableCollection property on the view-model:

public ObservableCollection<FieldData> FieldDataItems {
get;
set;
}

and the BindingContext of the Page is set in the constructor:

public DataPage(DataPageViewModel viewModel)
{
InitializeComponent();
BindingContext = viewModel;
}

here is the code that creates the page and viewmodel objects:

var viewModel = new DataPageViewModel() {
EquipmentObject = selectedNode,
FieldDataItems = new ObservableCollection<FieldData>(GetFieldDataItems())  // helper function that returns some mocked data objects
};

var dataPage = new DataPage(viewModel);
Navigation.PushAsync(dataPage);

Let me know if you need anything else.

Thanks,

-Matt.

 

 

 

 

ADMIN
Yana
Posted on: 07 May 2024 20:57

Hello Matt,

I am sorry to hear you came across such an exception with our DataGrid control.

I would need some more information on the concrete use case you have, would it be possible to send me the DataGrid definition as well as any additional details you find important.

I'll be looking forward to your reply.

Regards,
Yana
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Matt
Posted on: 03 May 2024 15:32

 

I was able to test using "Remote Device" mode with an iPhone 14 connected via a MacBook Air, and it appears to work correctly. The problem may be limited to running within the iOS Simulator.