Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
how to get selected rows values in angular infragistics grid UI

I'm using angular Infragisics grid in angular typescript 12 and I want to display all the selected rows from the igx-grid when I click a button.

Here is what I tried but I get an empty array and no data is displayed.

Here is the HTML code

<igx-grid 

#grid id="grid" [rowSelection] ='"multiple"'  primaryKey="prID" rowHeight="35px" displayDensity="compact" [data]="listeproduits"  [autoGenerate]="false" height="380px" [allowFiltering]="true" >

 <igx-column  field="code"  header="Code"></igx-column>
 <igx-column  field="name"   header="name"></igx-column>

 </igx-grid>

and here is where I try to print the selected value


export class productComponnet implements OnInit {

  @ViewChild("grid") public grid!: IgxGridComponent;

selected_rows()
  {
    console.log(this.grid.selectedRows);
  }
}

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!