Page 1 of 1

IWCGJQGrid and retrieve JSon data

PostPosted: 17 Dec 2018 18:09
by stephane
Hi ,

i try to retrieve JSon data with IWCGJQGrid but i don't succeed. Is there any sample with this component to show how to do that ? I follow the description about the json format expected by the IWCGJQGrid
Code: Select all
IWCGJQGrid1.JQGridOptions.DataType := gdtJson
:
{"total":1,"page":1,"records":49,"rows":[{"id":1,"cell":["Grille","Spot","X","Y"]}, ,{"id":2,"cell":["A","1","0","0"]}, ....]} which is reachable via a specific url :
Code: Select all
IWCGJQGrid1.JQGridOptions.Url := 'http://localhost:8080/ExcelToJson?filename=proj_test_1.xls';


i have a error message when i run the program : 'Grid Provider not assigned'. Is it always necessary to link a JQGridProvider to the IWCGJQGrid ? If yes, what kind of provider to choose and what i have to do to retrieve the json data above inside the grid.

thanks a lot