Author Topic: How to retrieve the value in a specific cell.  (Read 2281 times)

elearnster

  • Pro Economy
  • Newbie
  • *
  • Posts: 20
    • View Profile
How to retrieve the value in a specific cell.
« on: August 07, 2014, 10:41:18 pm »
I am trying to capture the value of a specific cell in the table and store it in a variable.  Can you point me in the right direction?  Since it is not the active row I need to specify the row and column and have it return the value.
Thanks in advanced.
« Last Edit: August 07, 2014, 10:47:12 pm by elearnster »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to retrieve the value in a specific cell.
« Reply #1 on: August 07, 2014, 11:12:17 pm »
you can specify the zero based row index ( rowIndx ) and field name (dataIndx ) to fetch the cell data.

Code: [Select]
  var rowData = $( ".selector" ).pqGrid( "getRowData", {rowIndx : 2} );
  var cellData = rowData[ dataIndx_of_field ];