Current filter:
                                You should refresh the page.
                                  • Hi Team

                                    i have a datagrid, i would like to get the row index on click of the cell, any idea how can i get it? i tried onEditingStart but the data doesn't contain the row index, please advise. thanks 

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,

                                You can use the getRowIndexByKey method to obtain the row index by its key in the onEditingStart event handler. For example:

                                    onEditingStart(e) {  
                                        alert(e.component.getRowIndexByKey(e.key));  
                                    }

                                Here is the corresponding code example: https://codesandbox.io/s/3xn25.

                                Thanks,
                                Alessandro