The data I have is structured like this:
$scope.myStudentData = {"Moroni":{"id":"1","grade":"A"},"Tiancum":{"id":"2","grade":"B"}}
However, the grid requires a different format:
$scope.myGridOptions = [{"details":"id", "Moroni":"1", "Tiancum":"2"},{"details":"grade", "Moroni":"A", "Tiancum":"B"}];
This discrepancy exists because ng-grid-options expects rows. Is there a way to display the grid column-wise without transforming the data into the expected format?
Note: I need to maintain angular two-way binding for some derived fields and cannot alter the data structure specifically for the grid.