Hide lower-level row when a group has only one item

Using your example: https://blazor.syncfusion.com/documentation/datagrid/grouping#initial-group is it possible to do the following:

1) If the second-level group ("Ship City") has only 1 item, do not show the third-level row ("Order ID" & "Ship Name").

2) Given condition 1, be able to click on the second-level row ("Ship City") and return the third-level Key value ("Order ID")

3) Be able to initially collapse the second-level groups ("Ship City") but not the first-level groups ("Customer ID")


3 Replies

PS Prathap Senthil Syncfusion Team March 13, 2025 02:28 PM UTC

Hi Dave,


Based on your requirement, we regret to inform you that it is currently not possible to achieve the functionality described in your scenario. Thank you for your understanding.

Regards,
Prathap Senthil



DA Dave March 13, 2025 05:25 PM UTC

Prathap, thanks for your reply. Is there a chance that a DetailTemplate can be used for any of the capabilities I inquired about? Thanks.



PS Prathap Senthil Syncfusion Team March 17, 2025 03:57 AM UTC

Thank you for reaching out again with your query.

Unfortunately, the specific functionality you are requesting hiding lower-level rows when a group has only one item, clicking on a second-level row to retrieve third-level key values, and selectively collapsing group level is not feasible.

Additionally, using a DetailTemplate for these capabilities is currently unsupported. The DetailTemplate feature is designed to add custom detail layouts for rows, but it does not allow modifying grouping behavior or controlling the visibility of groups based on item count conditions. Thanks for the your understanding.


Loader.
Up arrow icon