Author Topic: need get data of cells when click in the row  (Read 2200 times)

eriks

  • Newbie
  • *
  • Posts: 1
    • View Profile
need get data of cells when click in the row
« on: April 20, 2017, 11:04:00 pm »
i need put the text from the cells in another input when i click on the row
how i do this

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: need get data of cells when click in the row
« Reply #1 on: April 20, 2017, 11:15:56 pm »
you can get the content of cell with cellClick event.

Code: [Select]
cellClick: function(evt, ui){
  var val = ui.rowData[ui.dataIndx];//use it anywhere.
}