Configuration required to get Sencha ExtJS TreeGrid example working

Solution 1:

if you inspect treegrid.js you'll see that it requires treegrid.json (JSON-formatted data file). when you visit http://24.177.214.232:8888/examples/tree/treegrid.json (which is the path where treegrid.js expects treegrid.json) you'll see, that there is no such file.

fix the path or create a data file : )

EDIT you can find proper JSON here: http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/tree/treegrid.json

Solution 2:

Apart from the other configuration described, I had to go into IIS and do the following before the Tree Grid worked:

  • click on the new site
  • click on MIME types
  • right click in open space > Add > File name extension: "json" ... MIME Type: "application/x-javascript"