а

Fixed columns in grid?


#1

My personal app is able to return a JSONObject of data rows and includes a dynamic set of columns. Looking at the DHX 6 Grid documentation, it appears that the user must “hardcode” the column info (number of columns, column data type). Is there a way to just infer the column info from the actual JSON data file?


#2

It doesn’t seem so, as you have to match the “id” to the index of the array. I wouldn’t expect an official answer on this any time soon - they don’t seem to be providing support yet.


#3

You’re right. Unfortunately the config of the grid cannot be defined right in the data section.
You need to define the columns of the grid before loading the data to it.