Author Topic: cell get focus event  (Read 1012 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 128
    • View Profile
cell get focus event
« on: December 01, 2021, 05:35:13 pm »
Would you like kindly show me how to get cell value when a cell get focus whenever using keyboard or mouse?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6122
    • View Profile
Re: cell get focus event
« Reply #1 on: December 02, 2021, 11:45:09 am »

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 128
    • View Profile
Re: cell get focus event
« Reply #2 on: December 02, 2021, 07:32:48 pm »
Thank you very much, I can get the value of selected cell. But is there any method to get the id of the row that includes the selected cell? I tried to use ui.rowData["id"] to get the row id, but there is no such method.
« Last Edit: December 02, 2021, 07:36:05 pm by hyh888 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6122
    • View Profile
Re: cell get focus event
« Reply #3 on: December 02, 2021, 10:35:40 pm »
grid.Selection().eachRow() API can be used to get rowData of the selected cell.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 128
    • View Profile
Re: cell get focus event
« Reply #4 on: December 03, 2021, 10:12:53 am »
Thank you, it works