Update the grid() server-side function to support DAP4.
Update the grid() server-side function to support DAP4.