akgulebubekir / Maui.DataGrid

DataGrid component for Maui
MIT License
261 stars 54 forks source link

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

Open gvescu opened 1 year ago

gvescu commented 1 year ago

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.

Engisan commented 1 year ago

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.

symbiogenesis commented 1 year ago

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.

kyalsinsoewin commented 8 months ago

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 as you mentioned, it does not work.

jasmineesteban commented 5 months ago

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