ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: rushabhwadkar on December 08, 2020, 07:58:23 pm

Title: How to update an entire column of pq grid data
Post by: rushabhwadkar on December 08, 2020, 07:58:23 pm
We are having 3 columns in PQ grid as below -

The timestamp column contains timestamp in UTC format. Our requirement is to change the timestamp based on the timezone selected by the user from UI. Is there a way to change the column data easily and refresh the view? What would you suggest?

Briefly speaking, If change the timezone to America/New York, I want to run a function which would fetch the data from PQGrid and change the column timestamp value based on the Timezone and update the data in the PQ Grid.

Note - Having the backend to send the updated data is not feasible so we're just currently targeting having the logic on the client side only.
Title: Re: How to update an entire column of pq grid data
Post by: rushabhwadkar on December 09, 2020, 10:23:05 am
Please reply. It's urgent.
Title: Re: How to update an entire column of pq grid data
Post by: paramvir on December 09, 2020, 10:27:56 am
Just iterate ( loop ) through dataModel.data array and update the column values followed by refresh method.