Hi,
I would like to get the row number for igGird. Please see the image attached. Please let me know how to get the value.
Thanks
Ravi
Hello Indra,
I have been looking into your question and have determined that if the rowSelector’s number of the clicked row should be accessed, what I could suggest is binding a method to the rowSelectionChnaged event and checking the index of the currently clicked row:
{
name: "Selection",
rowSelectionChanged: function (evt, ui) {
let rowSelectorNumber = ui.row.index + 1;
console.log(rowSelectorNumber)
}
Additionally, if the value of a cell for specific row should be accessed the getCellValue method could be used.
Please let me know if you need any further information regarding this matter.
Regards, Monika Kirkova, Infragistics
I need the RowNumber value. If I am on to next page and rownumber is 25. I want that number to displayed on the UI.
Hello Ravi,
After investigating this further, I have determined that your requirement could be achieved by accessing the first cell of the selected row, which is the rowSelector. This could be achieved as follows:
let rowSelectorNumber = parseInt(ui.row.element[0].cells[0].textContent);
console.log(rowSelectorNumber);
Please test it on your side and let me know if you need any further information regarding this matter.