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

grid detail “+” "-" click event

1 Answer 2008 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dovydas
Top achievements
Rank 1
Dovydas asked on 14 Dec 2017, 03:50 PM

How to tap in to the click event of the "+" expand "-" collapse click events. Clicking on the row triggers the "cellClickHandler($event)", I need it to be able to handle detail click as an event also.

<kendo-grid [data]="mainData" (cellClick)="cellClickHandler($event)" >

    <kendo-grid-column>

        // column stuff

    </kendo-grid-column>

    <kendo-grid-column>

        // more column stuff

    </kendo-grid-column>

    <ng-template kendoGridDetailTemplate>

        <table> // stuff </table>

    </ng-template>

</kendo-grid>

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 15 Dec 2017, 07:29 AM
Hello Dovydas,

You can handle the Grid detailExpand and detailCollapse events. The index of the expanded/collapsed row, and the data item, associated with it, are available as event data:

http://plnkr.co/edit/XiUgoyeeA1AxFWBaoXej?p=preview

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Dovydas
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or