Changed the code to correctly retrieve the data from the server - for the grid.