ExtJS 4 to ExtJS 5 migration

孤街浪徒 提交于 2019-12-18 09:12:56

问题


We are migrating a web application from ExtJS 4 to ExtJS 5.

Testing the index.html results in the following error (outputted by the Firefox-FireBug-console):

NetworkError: 404 Not Found - http://localhost:8080/ext/build/examples/ux/grid/FiltersFeature.js?_dc=1414147197935

I have already searched for the FilterFeatures.js-file inside the directory, but it isn't there.

According to the "Whats New in ExtJS 5.0"-site this file was so popular, that they thought it would be wise to move it.

Can someone tell me how to include this file or the functionality, so that the error vanishes?

I have already tried to add the following to my app.js file:

Ext.Loader.setPath('Ext.ux', './ext/build/examples/ux');
Ext.application({
    ...
    requires: [
        'Ext.ux.grid.FiltersFeature'
    ],
    ...
});

But the error persists. I think i need to get a reference to an object that is now hidden somewhere else.

I just dont know how to reference it, because i dont know the js-file it is now placed in and how to do it syntactically correct in Ext JS 5.


回答1:


The basics are in the link you provided:

  • They removed the feature Ext.ux.grid.FiltersFeature (ftype: filters).
  • They introduced a plugin Ext.grid.filters.Filters (ptype: gridfilters)
    as an enhanced replacement.

So you will have to rework your grids manually to use the new plugin instead of the old feature.

Good luck.




回答2:


Glad to share Ext Js up gradation experience , Please check this link Ext Js 4 to 5 Migration Experience. Have a Happy Migration. Thanks



来源:https://stackoverflow.com/questions/26546585/extjs-4-to-extjs-5-migration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!