DataGrid Missing Vertical Scroll Bar

DataGrid missing vertical scroll bar after binding data has loaded all data. I can't scroll with mouse wheel as well.
I have tested with VerticalOptions="Fill" and VerticalScrollBarVisibility="Always".

Tested on .NET MAUI project running on MacOS. Tested on Nuget version 20.2.48.

Workaround I found out is, if I make app lose focus (by switching to other app / program in MacOS) then bring back the app, the vertical scroll bar will now visible and now I can scroll through scroll bar or mouse wheel.



12 Replies

KK Karthikraja Kalaimani Syncfusion Team September 12, 2022 12:47 PM UTC

Hi Ooi Keng Siang,


We have checked the reported issue “unable to scroll using mouse wheel in MacOS” in SDataGrid v20.2.48. We are unable to reproduce the issue in our end. We have attached the tested sample and video for you reference.

We need below details to check the issue on our end and provide you a better solution as soon as possible.

  1. DataGrid code snippets.

  2. Model and ViewModel class.

  3. Visual Studio version.


Regards,

Karthik Raja


Attachment: 177382_6af8be40.zip


OK Ooi Keng Siang September 13, 2022 03:29 PM UTC

I tried your sample project, they worked.

The main different is I'm using ReactiveUI library to manage my view model.

Here are a quick modified sample using ReadOnlyObservableCollection which similiar like ObservableCollection. It feel like there is a missing UI refresh in SfDataGrid implementation.


Attachment: SfDataGridDemo_2e82594c.zip


KK Karthikraja Kalaimani Syncfusion Team September 14, 2022 01:29 PM UTC

Hi Ooi Keng Siang,


We able to reproduce the reported issue, we will validate and update the further details on or before 16th Sep 2022. We appreciate your patience until then.


Regards,

Karthik Raja



OK Ooi Keng Siang replied to Karthikraja Kalaimani September 15, 2022 09:02 AM UTC

Thanks for looking into this.



KK Karthikraja Kalaimani Syncfusion Team September 16, 2022 04:15 PM UTC

Hi Ooi Keng Siang, 

 We need some more time to validate the issue. So, we will update the further details on or before 20th September 2022. We appreciate your patience until then. 

Regards,
Karthik Raja


KK Karthikraja Kalaimani Syncfusion Team September 20, 2022 07:05 PM UTC

Hi Ooi Keng Siang,


We have analysed the reported issue and we saw that the same issue occurs in simple ScrollView when the ScrollView children height is changes from 0 to higher value after the ScrollView is loaded in MacCatalyst. So, we have found workaround for DataGrid to overcome the issue. Please refer to the below code snippets.

Code snippets :
.... 
this.dataGrid.Loaded += DataGrid_Loaded;
.....

 private void DataGrid_Loaded(object sender, EventArgs e)
    {
        (this.dataGrid.Children[0] as ScrollView).Content.PropertyChanged += Content_PropertyChanged;
    }

....
    private void Content_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
    {
        if (e.PropertyName == "Height")
        {
            (this.dataGrid as IView).InvalidateMeasure();
        }
    }
 
Regards,
Karthik Raja


MB Mike Both January 9, 2023 11:57 PM UTC

Hi, am joining this conversation as this currently is an issue on Android also. Running the project as attached above ( 177382_6af8be40.zip) results in the vertical scroll bar not being displayed, and the suggested work-around also has no effect.

My client requires vertical scroll bars to be displayed on all grids, and right now I can't meeting even this basic requirement after recommending we go with Syncfusion components. So some kind of assistance would be great, here, thanks!

Mike



KK Karthikraja Kalaimani Syncfusion Team January 10, 2023 02:18 PM UTC

Hi Mike, We have checked the reported issue "Vertical Scrollbar is not showing in android" and able to reproduce the same issue when the ScrollView is added to the child of ContentView. We reported the issue to framework team. Hope, we will get a solution from framework team asap. We will let you know once we got a solution from framework team.https://github.com/dotnet/maui/issues/12547Regards,
Karthik Raja


MB Mike Both January 11, 2023 08:42 AM UTC

Hi Karthik - thanks very much for the information, let's see what Microsoft come up with then!



DA Damian April 25, 2023 08:20 PM UTC

The same exact issue is happening on Windows Desktop in v21.1.41

Any word on the backlog priority? Unfortunately, the proposed `PropertyChanged` workaround is not working for us.



NY Nirmalkumar Yuvaraj Syncfusion Team April 26, 2023 01:46 PM UTC

Hi Damian,


Currently we are validating your requirement. We will validate and update the further details on or before 2nd May 2023. We appreciate your patience until then.

Regards,
Nirmalkumar




KK Karthikraja Kalaimani Syncfusion Team May 3, 2023 11:46 AM UTC

Hi Damnian, 

Can you please share the code snippets related to SfDataGrid ? Since we are not aware about your scenario. So, it will be more helpful to provide a better solution asap. 

Regards,
Karthik Raja


Loader.
Up arrow icon