selectionChange type for Angular12 for grid

1 Answer 1683 Views
Grid
vamaw
Top achievements
Rank 1
Iron
Iron
vamaw asked on 13 Jun 2021, 06:37 AM

Hi,

 

What is best type for "public selectionChange(e) " in Angular12 ?

Regards

http://plnkr.co/edit/xEB6JN9ZVjm499G2KreX?p=preview&preview

 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 16 Jun 2021, 08:35 AM

Hi Vamaw,

I am not sure that I understand correctly the question, but the returned type of handling selectionChange event is SelectionEvent:

 <kendo-grid
      [data]="gridView"
      [selectable]="true"
      (selectionChange)="onSelect($event)"
    >
    </kendo-grid>
export class AppComponent {
  public onSelect(e: SelectionEvent) {
    console.log(e);
  }
  private gridView: any[] = [
    {
      ProductID: 1,
      ProductName: 'Chai',
      UnitPrice: 18.0,
      Discontinued: false
    },
   ...
  ];

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/.

Tags
Grid
Asked by
vamaw
Top achievements
Rank 1
Iron
Iron
Answers by
Martin
Telerik team
Share this question
or