PDA

View Full Version : extjs 4.2 tree grid not expanding



super.rotus
24 Mar 2014, 11:32 AM
I've migrated from extjs 4.1 to 4.2 and it does modified a lot of problems, but in my app i have a tree, and it doesnt work when i click the expand button, it doesnt call an ajax, (its an mvc and every time i expand my node it has to call an ajax)
In 4.1 it was working ok, now it doesnt do anything... My store:


Ext.define('IE.store.seguimiento.packageTracking', {
extend: 'IE.store.seguimiento.treeStoreO',
alias: 'store.PackageTrackingGrid',
storeId: 'PackageTrackingGrid',
model: 'packageTrackingM',
root: {
text: '',
draggable: false, // disable root node dragging
attributes: {},
clearOnLoad: true,
clearRemovedOnLoad: true,
autoLoad: false,
expanded: true,
children: []
},
proxy: {
type: 'ajax',
api: {
read: 'packageTracking/findPackages'
},
reader: {
type: 'json',
totalProperty: 'totalProperty'
},
autoload: false,
autoSync: true
},
listeners: {
beforeload: function (store, operation, eOpts) {
var kode_jabatan = operation.node.get("folioPaquete");
operation.params.packageId = kode_jabatan;
}
}
});

Gary Schlosberg
28 Mar 2014, 9:39 AM
To which version of ExtJS are you upgrading (4.2.0, 4.2.1, 4.2.2)? Can you post the tree code?