Apr 12, 2012, 1:36 PM
I provided an example in the first post of this thread. I mentioned that it does not work ("The control with ID '_str' not found") when i use PageProxy. After investigating better i think that i found a bug in ComponentLoader.ToJason:
{
store: {
model: Ext.define(Ext.id(), {
extend: "Ext.data.Model",
fields: [{
name: "ID"
}, {
name: "Name"
}],
idProperty: "ID"
}),
storeId: "_str",
proxy: {
type: "page",
reader: {
type: "json",
root: "data",
totalProperty: "total"
},
url: "/Example/Test/"
},
buffered: true
},
id: "_grd",
height: 200,
xtype: "grid",
title: "example",
columns: {
items: [{
id: "ID",
dataIndex: "ID",
text: "_clnID"
}, {
id: "Name",
dataIndex: "Name",
text: "_clnName"
}]
},
viewConfig: {
xtype: "gridview",
trackOver: false
},
listeners: {
afterrender: {
delay: 100,
fn: function (item) {
var me = this;
me.store.prefetch({
start: 0,
limit: 0
});
}
}
}
}
in the code above the storeId is the defined as "_str" but ComponentLoader did not set the id of the store.
Last edited by Daniil; Apr 12, 2012 at 1:39 PM.
Reason: Please use [CODE] tags