Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
Get Rownumber for igGird
posted

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

Parents
  • 1300
    Offline posted

    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

Reply Children