PDA

View Full Version : Why Synchronously loading 'feature.filter' if I included ext-all-dev?



Fire-Dragon-DoL
11 May 2012, 10:12 AM
I'm trying to use the filter feature in a grid, however it searches for feature/filter.js, why? I'm using ext-all-dev.

Also, Ext is in /assets/extjs/ dir (where you can eventually find the src dir, with feature dir in it), it won't find in any way the dir /feature/filter.js.

Notice that I'm using MVC Architecture, so even if I want to place an Ext.require, I don't know where should be placed (it's not specified anywhere and I don't have any Ext.onReady).

My application.js file looks like this:

Ext.Loader.setConfig({
enabled: true,

paths: {
'Fdd': 'assets/libs/fdd',
'FedertrekDesktop': 'assets/federtrek_desktop/app',
'Ext': 'assets/extjs/src'
}
});

RWaters
11 May 2012, 1:10 PM
the filter feature of the grid is not something built-in to the framework, it is a ux provided in the examples folder and will require a separate include of the main file (examples/ux/grid/FiltersFeature.js)

Fire-Dragon-DoL
11 May 2012, 4:54 PM
Doh, you solved me a big problem.
However, the examples dir is chaos, I don't know which file are used for examples and which I can include!