This is a migrated thread and some comments may be shown as answers.

How to expand a group with a client click on the group header row instead of clicking on icon- Angular

1 Answer 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kishan
Top achievements
Rank 1
kishan asked on 11 Nov 2020, 12:51 AM

Hello,

After doing Group By on a grid. I'd like to expand/collapse a group in a Grid by clicking the entire row of the group header, not just the litte arrow on the left.

Currently, if we click on little group by arrow on the left side it will expand/collapse the group. Instead, need to expand/collapse by clicking the entire row of the group header. 

I have attached a screenshot for better clarification. 

Any help would be appreciated. Thanks in advance. 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 12 Nov 2020, 08:37 AM

Hi Kishan,

Thank you for the provided screenshot.

The desired functionality is not supported out-of-the-box, but it can be achieved, by using a custom JavaScript implementation.

The developer can handle the DOM click event on the Grid tag and programmatically click the expand/collapse icon of the clicked row. Here is an example:

https://stackblitz.com/edit/angular-1jcuvn-w9byrh

I hope this helps.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Daniel Mettler
Top achievements
Rank 2
Iron
commented on 23 Jun 2023, 11:57 AM

In Kendo Version 13 you must replace .k-icon with .k-svg-icon
Martin
Telerik team
commented on 27 Jun 2023, 08:03 AM

Hi Daniel,

Correct. Here is the updated example using Angular v13 and v13.0.3 of the packages:

https://stackblitz.com/edit/angular-sxdgmc

Regards,
Martin
Progress Telerik
Tags
Grid
Asked by
kishan
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or