Hi Dimitar,
As per the above link, can you please let me know how are the json data stored in the url of the source.
I can only see
var url = "../sampledata/rows_and_columns.txt";
Can you provide me the full link so i can view the file contents and understand it better.
As far as i can understand from the code, it checks the json file and updates the grid column header as per the value it is stored in the text file of URL… i.e. we know that the columns would be either of these below
datafields: [
{ name: 'id', type: 'number' },
{ name: 'name', type: 'string' },
{ name: 'type', type: 'string' },
{ name: 'calories', type: 'int' },
{ name: 'totalfat', type: 'string' },
{ name: 'protein', type: 'string' }
],
But wat if instead of the above case, we have 5 or 10 columns and different names each time. How can we display such dynamic columns name and different number of columns.