PDA

View Full Version : Load TreeStore -- error: this.tempHidden is undefined



slsb02
28 Feb 2013, 3:32 AM
Hello,

i have a problem. When load TreeStore Firebug gives error:
this.tempHidden is undefined

My TreeStore


PAYMList_PaymentsListDataCall = Ext.create('Ext.data.TreeStore', {
model: "PAYMList-payment-record-model",
proxy: {
actionMethods: { create: 'POST', read: 'POST', update: 'POST', destroy: 'POST' },
extraParams: { task: "get_db_payment_list" },
type: 'ajax',
url : OrderPaymentsHelperFile,
reader: {
type: 'json',
root: 'result',
}
},
root: {
children : [],
}
});

and Loading:


PAYMList_PaymentsListPagingDataCall.on('load', function(){
PAYMList_PaymentsListDataCall.load();
});


Loading TreeStore over a button there is no problem?

Thank you!

mitchellsimoens
2 Mar 2013, 11:05 AM
What Ext JS 4.x.x version?

slsb02
3 Mar 2013, 7:25 PM
Hello,

Version 4.0.7.

Best regards

slsb02
4 Mar 2013, 8:56 PM
this is the solution:



Ext.override(Ext.ZIndexManager, {
tempHidden: [],
show: function() {
var comp, x, y;
while (comp = this.tempHidden.shift()) {
x = comp.x;
y = comp.y;
comp.show();
comp.setPosition(x, y);
}
}
});