Author Topic: Change cell value programaticly  (Read 4437 times)

Robert

  • Pro Economy
  • Newbie
  • *
  • Posts: 26
    • View Profile
Change cell value programaticly
« on: April 26, 2014, 04:11:48 am »
I would like to change the value of a cell in code.

I have the row and proper dataIndx to reference the cell:

                $grid.pqGrid("getCellData", { rowIndx: rowIndx, dataIndx: 'archived'});

I haven't been able to find a clear example of changing the value and updating the rowData.

Is there an example or tutorial you might direct me to?

Thank you!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Change cell value programaticly
« Reply #1 on: April 26, 2014, 08:05:56 am »
There is an API for updating a row.

http://paramquery.com/pro/api#method-updateRow

Code: [Select]
  $grid.pqGrid( "updateRow", { rowIndx: rowIndx, row: { 'archived': 'new  value of the cell here' } } );

Robert

  • Pro Economy
  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Change cell value programaticly
« Reply #2 on: April 26, 2014, 07:33:46 pm »
Thank you!