Configuration required to get Sencha ExtJS TreeGrid example working

后端 未结 2 1474
忘掉有多难
忘掉有多难 2020-12-02 01:33

Can someone help explain what configuration I\'m missing to get the Sencha Ext JS 4 framework TreeGrid sample working?

Here\'s what I\'ve done so far:

Down

相关标签:
2条回答
  • 2020-12-02 02:05

    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

    0 讨论(0)
  • 2020-12-02 02:09

    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"
    0 讨论(0)
提交回复
热议问题