Author Topic: Is there any option to get initial value assigned through data model in grid  (Read 1662 times)

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Team, We have a business requirement where we need to do some calculation in render function based on initial values assigned to dataModel and required to reference it later.
We would be able to make this work by keeping a copy of data which assigned to dataModel. Just thought of checking whether pq component already have such feature and can get that initial value assigned to dataModel by passing rowIndex and colIndex. Thanks..

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
pqgrid doesn't keep a copy of the original data assigned to dataModel.

original data can be copied in the dataModel.getData callback.

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Okay-thanks for the information!