Author Topic: Auto unique identifier field for JSON data  (Read 2043 times)

Param Query Eval

  • Newbie
  • *
  • Posts: 15
    • View Profile
Auto unique identifier field for JSON data
« on: March 10, 2020, 03:13:41 pm »
Do we have any option to configure for pqGrid to inject unique identifier field for each row.
For example, to track grid changes, it is required to give a unique identifier of each row in dataModel property of recIndx.
Also in treeModel, it is expected to a field which stores unique identifier of each row.

Is there any way to configure for pqGrid to make unique identifier internally for each row in absence of "Id" field.[We don't get any identity field in JSON data from service. If pqGrid has any such option then we don't required to iterate and set id field manually].
Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: Auto unique identifier field for JSON data
« Reply #1 on: March 10, 2020, 10:49:43 pm »
There is no such option in grid, you have to do it manually.

Param Query Eval

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Auto unique identifier field for JSON data
« Reply #2 on: March 11, 2020, 11:58:31 am »
Okay, thanks!