Completed
Last Updated: 13 Nov 2024 16:27 by ADMIN
Release 8.0.0 (2024 Q4)
Rodrigo
Created on: 12 Jul 2024 20:31
Category: CollectionView
Type: Feature Request
3
CollectionView: Add Cancellation support for group expand/collapse

Hi Team,

Please consider adding a way to cancel a group's expand/collapse action when the user taps on the group header.

For example, through a GroupTapping event handler that fires just before GroupTapped, and we can execute logic that prevents the operation:

private void RadCollectionView_OnGroupTapping(object sender, RadTappingEventArgs<GroupContext> e)
{
    if (e.Data.Key.ToString() == "GroupToStayPermanentlyExpanded")
    {
        e.Cancel();
    }
}


// which uses this imaginary event args with Cancel method
public class RadTappingEventArgs<T>(T data) : RadTappedEventArgs<T>(data)
{
    public void Cancel()
    {
        // prevents GroupTapped event
    }
}

Thank you,

Rodrigo

1 comment
ADMIN
Didi
Posted on: 13 Nov 2024 16:27

Hi,

Review the GroupTapping event that exposes a Cancel parameter https://docs.telerik.com/devtools/maui/controls/collectionview/events 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.