Skip to content

[data grid] gridFilteredDescendantCountLookupSelector is not sufficient to complete user story #14491

Open
@ashburnham

Description

@ashburnham

Summary

Current behavior
if you have a parent group which has two rows inside that are in the same group, then it will count this as 3 descendants (it counts the 2 rows and then adds another for the group).

This is confusing for the user who only sees 2 descendant rows which just happen to be grouped.

Expected behavior
if you have a parent group which has two rows inside that are in the same group, then I should be able to show the user the number of rows rather than the number of nodes. i.e. it should only show 2 descendants because there are only 2 descendant rows.

image

Examples

this is an example of trying to use gridFilteredDescendantCountLookupSelector and only being able to deliver something nonsensical to the user

image

There should be a new feature like gridFilteredDescendantCountLookupSelector but different that allows me to show there are 5 items. Maybe gridFilteredUltimateDescendantCountLookupSelector

Motivation

just want the numbers to add up so it makes sense to the user

Search keywords: gridFilteredDescendantCountLookupSelector, tree data
Order ID: 92825

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: data gridThis is the name of the generic UI component, not the React module!feature: Row groupingRelated to the data grid Row grouping featurefeature: Tree dataRelated to the data grid Tree data featurenew featureNew feature or requestsupport: pro standardSupport request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions