.NET MAUI - LongPress on Windows platform doesn't fire

Hello,

I have bounded LongPressCommand to my sfDataGrid with:


CellLongPressCommand="{Binding LongPressCommand}"


On Android everything is working OK, but in Windows these Command doesn't fire.
Is this a bug or this is planned "feature"?

I've tried LongPress behaviour from CommunityToolkit, but then I can't pass Current "longpressed" row to command - it passes only whole control.


4 Replies

SD Sethupathy Devarajan Syncfusion Team August 21, 2024 12:55 PM UTC

Hi Leszek,


We have already considered this as a bug and logged a bug report regarding this in our feedback portal. We will fix the reported issue and include the changes in our upcoming weekly patch release, which is expected to be rolled out on September 03, 2024. We will let you know once released, and we appreciate your patience until then. You can also track the status of the bug using the feedback link below.


Feedback Link: 60415


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


Please note that CellLongPressEvent does not work with mouse clicks on the Windows platform. It only works on touch-screen devices.


Regards,

Sethupathy D.



LG Leszek Glinowiecki August 22, 2024 06:17 AM UTC

Hi,

So how can I simulate in example Double Click on row with sfDataGrid or sfListView on Windows platform without touch screen - on classic Windows Desktop?



SD Sethupathy Devarajan Syncfusion Team August 22, 2024 11:31 AM UTC

Hi Leszek,


Query

Response

So how can I simulate in example Double Click on row with sfDataGrid or sfListView on Windows platform without touch screen - on classic Windows Desktop?

 

 

Based on the provided information, it is clear that you need to perform a double-click on the row. You can achieve this with the CellDoubleTapped event. We have shared the UG link for your reference.


Ug link : CellDoubleTappedEvent


Regards,

Sethupathy D.



SD Sethupathy Devarajan Syncfusion Team August 27, 2024 01:49 PM UTC

Hi Leszek,

We are glad to inform you that the reported issue regarding the “CellLongPressedCommand not working for SfDataGrid” has been resolved. This fix has been incorporated into our latest weekly NuGet release. To benefit from this fix, we recommend updating your DataGrid package to version 26.2.11.

 

https://www.nuget.org/packages/Syncfusion.Maui.DataGrid

 

Root Cause,

We have performed the longPressCommand with a conditional check to ensure that cellLongPressCommand and CellLongPressCommandParameter are not null.

 

We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.

 

Regards,

Sethupathy D.


Loader.
Up arrow icon