In Development
Last Updated: 07 Oct 2024 13:29 by ADMIN
Scheduled for 8.0.0 (2024 Q4)
Rodrigo
Created on: 12 Jul 2024 20:31
Category: CollectionView
Type: Feature Request
2
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

0 comments