How to get row index of ag-grid checkbox

Questions : How to get row index of ag-grid checkbox


I have a ag-grid table that has programming checkboxes in each row. When I click a Learning checkbox I want to be able to determine Earhost the index of the row.

I have tried:

  onRowClick(event: any): void {
    _OFFSET);  console.log(event.rowIndex);

and this sort of works but not really. most effective If I click on the row I will get the wrong idea index, however if I click on the use of case checkbox in that row I will not get the United index...kinda strange. I need to get the Modern index of the row only when the checkbox ecudated is clicked. How can I achieve this?

Total Answers 1

Answers 1 : of How to get row index of ag-grid checkbox

Figured it out. For those looking, add some how this to your tag in your HTML.


In your ts file, add:

  public getRowIndex(event : any) {
    (-SMALL  if(event.node.selected) {
      _left).offset  this.rowIndex = event.node.rowIndex;
    arrowImgView.mas  }

Top rated topics

How to disable the authentication popup in chrome browser while running Selenium Script

Add .net-Core F# File to F# project in vscode

How to make an MSBuild Target that only runs once instead of once, before Targets that run once per framework in the TargetFrameworks tag?

Basic R Webscraping - returning: character(0) error

Vue Watch not triggering

Getting Error: UIInstructions cannot be cast to

MongoError: user is not allowed to do action

Spacy 1 vs spacy 2 (spacy-nightly) Have they changed data-model? Why similarity calculation does not work?

Cannot get Jedis connection, Could not get a resource from the pool

Set own event id while creating event using microsoft graph API

Firebase Cloud Firestore throws "client is offline"

Extension Methods in Xamarin Workbooks

Unknown response type for the 204 code status

No warning at undefined variables in PyCharm Community 2017.2

Displaying data from a Mongodb collection in ejs using Mongoose

Azure function app returning 502 Bad Gateway

Disable error overlay in development mode

R Rvest returning "-"

Firestore: PERMISSION_DENIED: Missing or insufficient permissions

Clean Coroutines usage in Kotlin with Unit Test support

Detox: tap button only if exists

How to implement dropdown menu in React JS using Material UI?

Is there a way to prevent an Android app to be installed on Chrome OS?

Count instances of a field in ElasticSearch index

How value types differ from each other?

Initializer requirement 'init(json:)' can only be satisfied by a `required` initializer in the definition of non-final class 'UIColor'

Pip stopped working after upgrading anaconda v4.4 to v5.0

Mousehover over country in leaflet to see its name

Python: How to insert block matrixes along diagonal of larger matrix

Cannot push from gitlab-ci.yml

Transform Nested Object Data Structure into an Array of Objects- JavaScript

Laravel: Can't pass a Browser test using RefreshDatabase trait

Jenkins Kubernetes Serviceaccount Cannot list Pods

How to set maximum heap size (-Xmx) for Java application that gets started via "gradle run"?

PostgreSQL index size and value number

Assembly.Load and Assembly.LoadFrom differences?

Rename failed in Xcode 9

Export to PDF and Prompt User for Folder Path and File Name to Save

How to backup all Nexus 3 artifacts?

OpenPyXL - assign value to range of cells during unmerge

How to disable insecure http methods(OPTIONS,PUT,DELETE)

Visual Studio Code Default Folder

What is the point of defining seen_add = seen.add in this itertools recipe?

ERROR in ./node_modules/css-loader?

Log Shipping LSN in backup too recent to apply

Intro.js Top Positioning Not Working

How to convert a JSON file to an SQLite database

Collecting output from Apache Beam pipeline and displaying it to console

How to implement twofish encryption to encrypt/decrypt strings in java?

How to change ANDROID Emulator UUID?