How to open and close the detailtemplate programmatically?

0 Answers 124 Views
Grid
alex
Top achievements
Rank 1
Iron
Veteran
alex asked on 11 Mar 2022, 03:00 PM

How to open and close the detailtemplate programmatically?

I have 3 columns, and therefore 3 cells in which I have a button.

At the click of the button I would like to open / close the detail template

Without having the + icon on the left


<kendo-grid-column field="info" title="info">
     <ng-template kendoGridCellTemplate let-dataItem>
         <button mat-button (click)="clickInfoCell()">
         </button>
      </ng-template>
 </kendo-grid-column>

public onCellClick(event: CellClickEvent){
    this.myEvent= event;
 }

//toggleTemplate
public clickInfoCell(){
    //Close previous template
    //Open detail template
}


thanks,

Alex

No answers yet. Maybe you can help?

Tags
Grid
Asked by
alex
Top achievements
Rank 1
Iron
Veteran
Share this question
or