Author Topic: When Array data are used as data source, how to control column attribut as json?  (Read 445 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 141
    • View Profile
When Array data are used as data source, how to control column attribut as json-data's? Such as width,default value,editor type of the column.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
It's done in similar way as object data, difference being that the numbers ( initial index of the column in colModel ) are used as dataIndx in case of array data.
« Last Edit: March 20, 2024, 07:09:48 pm by paramvir »

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 141
    • View Profile
Dear Team,
Do you mean that the first column(datatype is number) in array data will be treated as index(or ID ) of every line?
If the string column is the index of data, how to make it?