Maui.DataGrid icon indicating copy to clipboard operation
Maui.DataGrid copied to clipboard

When DataGrid is inside a ScrollView data doesn't show up on Android

Open gvescu opened this issue 2 years ago • 4 comments

Hi! This might be a duplicate of issue #93 but it just happened to me. The Windows version is showing the datagrid fine, but nothing is displayed on the Android version.

My datagrid is inside a ScrollView with orientation horizontal because I have many rows.

Just in case, here are my workloads:

maui                                   7.0.92/7.0.100              SDK 7.0.300
maui-windows                           7.0.92/7.0.100              VS 17.6.33829.357
maui-maccatalyst                       7.0.92/7.0.100              VS 17.6.33829.357
maccatalyst                            16.4.7089/7.0.100           VS 17.6.33829.357
maui-ios                               7.0.92/7.0.100              VS 17.6.33829.357
ios                                    16.4.7089/7.0.100           VS 17.6.33829.357
maui-android                           7.0.92/7.0.100              VS 17.6.33829.357
android                                33.0.68/7.0.100             VS 17.6.33829.357

I tested it on my device with Android 13 and API target 33. Also tested it with both 2.0.0 and with main branch.

gvescu avatar Jul 15 '23 05:07 gvescu

Facing the exact same issue. I have a lot of columns and I expected the package to handle that automatically. Now, because it does not do it I wrapped it with horizontal ScrollView and the data is gone. Edit: it works once the HeightRequest of the ScrollView is set.

Engisan avatar Jul 21 '23 17:07 Engisan

I recommend forking this project and setting up the Sample app to run inside of a ScrollView, and then filing a bug report with MAUI and linking to your forked repo. Be sure to document the exact versions of MAUI and Android.

symbiogenesis avatar Oct 18 '23 03:10 symbiogenesis

Facing the exact same issue. I have a lot of columns and I expected the package to handle that automatically. Now, because it does not do it I wrapped it with horizontal ScrollView and the data is gone. Edit: it works once the HeightRequest of the ScrollView is set.

Even though I wrapped <ScrollView Orientation="Both" HeightRequest="750"> as you mentioned, it does not work.

kyalsinsoewin avatar Mar 21 '24 09:03 kyalsinsoewin

Facing the exact same issue. I have a lot of columns and I expected the package to handle that automatically. Now, because it does not do it I wrapped it with horizontal ScrollView and the data is gone. Edit: it works once the HeightRequest of the ScrollView is set.

I also tried setting the Height Request but it still doesnt work

jasmineesteban avatar Jul 02 '24 03:07 jasmineesteban