RadDataGrid (.NET MAUI) causing app to crash on iOS

1 Answer 95 Views
DataGrid
Angelica
Top achievements
Rank 1
Iron
Angelica asked on 06 Jun 2024, 05:03 PM
After upgrading to .NET 8, when navigating to a page that contains the RadDataGrid the app crashes on iOS. The exception is about the header text. We've created a brand new test project and we're able to replicate the issue. Unfortunately it is not allowing me to attach the entire project because it exceeds the file size limit. I have attached an example of the MainPage.xaml and MainPage.xaml.cs. Can you please assist with this issue? Thank you!

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 07 Jun 2024, 08:39 AM

Hello Angelica,

I noticed you open only forum threads for all questions you have related to Telerik MAUI controls. Could you please share the reason why you do not open support tickets? 

Let me get straight to the questions:

1) Attached xaml and xaml.cs files

Regarding to the attached xaml file, I noticed the DataGrid is inside ScrollView. Please avoid this. Scrollable objects should not be nested. This is described in Microsoft docs:

ScrollView objects should not be nested. In addition, ScrollView objects should not be nested with other controls that provide scrolling, such as CollectionView, ListView, and WebView.

and Telerik MAUI DataGrid docs:

The DataGrid provides UI virtualization, so it requires its visual parent to provide vertical or horizontal space for the control to fit into. The following scenarios will measure the DataGrid with infinite width and height constraints and the virtualization will not work:

Positioning the DataGrid inside a StackLayout which is wrapped in a ScrollView.
Positioning the DataGrid inside a ScrollView.

Regarding to the attached xaml.cs file, the code there is uncomplete. I have added the model. 

2) DataGrid and usage on .NET 8, I can assure you that the control works in a .NET 8 project. I have attached my sample app that shows this and an image with the result on iOS. I tested on all 4 platforms and no exception. 

I can suggest you clean the NuGet cache, delete bin and obj folders, then clean and rebuild the app. You can also create a sample maui app targeting net 8 and test the behavior.

3) Attaching files to the forum -> they should not exceed 40MB. In order to reduce the file size, you have to delete bin and obj folders from the project, then archive it and attach it.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DataGrid
Asked by
Angelica
Top achievements
Rank 1
Iron
Answers by
Didi
Telerik team
Share this question
or