Would like to add long tap handler for the item view of RadCollectionView.
Adding long tap effect breaks SelectionChanged functionality. Both gestures (long and single tap) added seems does not working.
Probably any in-box solution possible?
1 Answer, 1 is accepted
1
Accepted
Didi
Telerik team
answered on 10 Sep 2025, 07:25 AM
Hi Andrey,
The CollectionView provides ItemTapped event and ItemTapCommand. So the tap gesture is reserved for the event and command. Regarding to the hold/long press gesture, this is reserved for the drag and drop feature.
Could you please share what is the exact scenario you want to achieve?
I would like to have selection of item by tap gesture or internal RadCollectionView mechanism and handle it with the Selection_Changed and the LONG tap gesture at the same time, now I see the problem with it, can not make both happen.
In case of added long tap effect the Item Tapped event does not invokes, and opposite long tap effect on item does nothing when I define the ItemTapCommand.
I made it works in Xamarin using RadListView custom renderer, any way we can use MAUI handler for this? I see all the classes are internal. Any help welcome.
Didi
Telerik team
commented on 10 Sep 2025, 10:32 AM
RadListView is a native control and renderers can be used. In Maui the RadCollectionView is not a native control. For item tap, the gesture is tap, not hold. So you cannot override this behavior.
Share what is the scenario you want to achieve using hold gesture.
We select the items and show the details with single tap - usual scenario. Additionaly we want to simulate multi selection which will be activated after a long press, and each long press will select the relevant item with the relevant UI changes in it.
As a solution you can add additional checkbox inside the template and when the checkbox is checked add the item to the SelectedItems collection. At this time there isn't an option to triggers hold gesture.