Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda