ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Robert on April 26, 2014, 04:11:48 am

Title: Change cell value programaticly
Post by: Robert 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!
Title: Re: Change cell value programaticly
Post by: paramvir 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' } } );
Title: Re: Change cell value programaticly
Post by: Robert on April 26, 2014, 07:33:46 pm
Thank you!