Author Topic: Need to update the data without refreshing the grid and data and view  (Read 1851 times)

VigneshVpn

  • Newbie
  • *
  • Posts: 33
    • View Profile
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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6314
    • View Profile
Re: Need to update the data without refreshing the grid and data and view
« Reply #1 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()
« Last Edit: November 16, 2018, 07:47:36 am by paramquery »