ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: VigneshVpn on November 15, 2018, 05:34:33 pm

Title: Need to update the data without refreshing the grid and data and view
Post by: VigneshVpn on November 15, 2018, 05:34:33 pm
Hi,

Here i tried to updating the grid data for every 1 second. for now i just called the refreshDataAndView() for updating the data and view in the Grid. Its updating as well. But the problem is when i try to edit the row or expand or search or enter page name in the bottom, grid is refreshed and i lost the edit, expand and all things i said.

Please provide me a tips or trick to avoid this.

Thanks in advance,
Vignesh.
Title: Re: Need to update the data without refreshing the grid and data and view
Post by: paramvir on November 16, 2018, 07:45:44 am
add a unique field ( primary key ) in every row to make comparison between rows easier.

Compare the rows in dataModel.data with the rows in new data and set the field values selectively.

Use refresh() instead of refreshDataAndView()