Hello everyone
I am trying to use a treepanel and treestore. I have the proxy configured in the model (ive also tried placing it in the store), but, the proxy never sends a request to the server, not when the store loads, not when I reload it, The store.load() event does fire, success is true, records.length is 0, all other properties, like operation.url, are undefined. It's like its not aware of the Ajax proxy object being set up. What could be the issue? Your help is greatly appreciated.
Thank you so much to any help in advance...
VIEW::
Code:
Ext.define('Jewel.view.test.Test',
{
extend: 'Ext.Panel',
xtype: 'test',
requires: [
'Ext.tree.Panel',
'Jewel.store.Test'
],
items: [
{
border:true,
flex:1,
items: [
{
xtype:'treepanel',
title: 'TEST TREE',
//rootVisible: false,
store:
{
type: 'test'
}
}]
}]
});
STORE:
Code:
Ext.define('Jewel.store.Test',
{
extend: 'Ext.data.TreeStore',
alias: 'store.test',
model: 'Jewel.model.Test',
root: {
//name: 'Sections',
pid: 'root',
text: 'Document Sections',
expanded: true
}
});
MODEL:
Code:
Ext.define('Jewel.model.Test',
{
extend: 'Ext.data.Model',
alias: 'model.test',
fields: [
{name: 'name'},
{name: 'email'},
{name: 'phone'}
]
});
INSTANCE CREATION (IN A TAB PANEL OF SAMPLE APPLICATION):
Code:
{
title: ' Test',
iconCls: 'fa-users',
layout: {
type: 'vbox',
align : 'stretch',
pack : 'start'
},
items:
[
{
xtype: 'test',
flex:1
}
]
}