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.
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.
DataGrid code snippets.
Model and ViewModel class.
Visual Studio version.
Regards,
Karthik Raja
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.
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
Thanks for looking into this.
| .... 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(); } } |
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
Hi Karthik - thanks very much for the information, let's see what Microsoft come up with then!
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.
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
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