Grid.load does not load data from JSON(through IIS)

Hi All,

I am trying to load data from JSON file into DHTMLX Grid but It does not load. I am accessing my HTML file through IIS. I am using Grid.Load(filename.json, function(), “json”) method. All files and IIS are on same machine and I am trying to load html file from same machine.

It loads data fine if I access HTML file directly but not from iIS(localhost:….).

When I did debug it, I got an error: “*.json 404 (Not Found)”.

Any suggestions, please.

Thanks!


FYI, I am using DHTMLXSuite_v411_pro version.

Unfortunately the issue cannot be reproduced locally.

As the error is 404 please, make sure that the path is defined correctly.
If the problem still occurs for you please, provide with a complete demo, where the problem can be reconstructed locally.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

I have already sent demo to ‘DHTMLX support team’ support@dhtmlx.com.

Its very easy to reproduce. Just deploy DTMLXsuite folder on IIS and try to browse
“dhtmlxSuite_v411_pro\samples\dhtmlxGrid\12_initialization_loading\09_init_grid_json.html” .
You can see that browser shows just blank table. I have attached snapshot of IIS and browser.




ok. I was missing JSON MIME type on my IIS server. Once i added JSON type, it started working :smiley: .

Thanks!