I am using AG Grid with Angualr 2 and my data from backend is not in key-value pair format.
AG Grid expects:
*rowData = [{col1: "data1", col2: "data2"},{col1:"data3", col2:"data4"}];*
In our case we are getting a compressed data from backend in the below format
*gridData = {cols:[col1, col2], rows:[{"data1","data2"},{"data3","data4"}]}*
This force us to convert gridData to rowData at the UI level.
Is there any solution for this? we can't update rest to give the expected data.