Author Topic: How do I get the dataIndx when I only have the colIndx  (Read 1274 times)

angelahlp

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
How do I get the dataIndx when I only have the colIndx
« on: December 02, 2020, 02:33:53 am »
I am using the selectEnd event and am only provided with the rowindx and the colindx. How can I get the dataIndx from the colIndx or from selectEnd?

Thank You

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How do I get the dataIndx when I only have the colIndx
« Reply #1 on: December 02, 2020, 10:36:11 am »
dataIndx can be obtained from colIndx

Code: [Select]
var dataIndx = grid.getColModel()[ colIndx ].dataIndx;