Dumbledore
29 Jun 2007, 1:34 AM
It seems, that my problem is gone after usage of 1.1 beta2 :-)
Hi there,
i have a grid and a tree, that should load content after Ext.onReady. The grid is always loading via HttpProxy/Jsonreader. But the tree (via TreeLoader) loads only if i disable the loading of the grid.
Where is my faullt?
var tree = new Ext.tree.TreePanel('product_tree', {
animate:true,
loader: new Ext.tree.TreeLoader({dataUrl:'/server_response/product_initials.php'}),
enableDD:true,
containerScroll: true
});
// set the root node
var root = new Ext.tree.AsyncTreeNode({
text: 'Ext JS',
draggable:false,
id:'source'
});
tree.setRootNode(root);
ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'/server_response/informations.json'}),
reader: new Ext.data.JsonReader(
{root: 'information', id:'id'},
[
{name: 'id'},
{name: 'short_description'},
{name: 'modified_date', type: 'date', dateFormat: 'd.m.Y H:i'},
{name: 'valid_from', type: 'date', dateFormat: 'd.m.Y H:i'}
]
)
});
ds.load();
Hi there,
i have a grid and a tree, that should load content after Ext.onReady. The grid is always loading via HttpProxy/Jsonreader. But the tree (via TreeLoader) loads only if i disable the loading of the grid.
Where is my faullt?
var tree = new Ext.tree.TreePanel('product_tree', {
animate:true,
loader: new Ext.tree.TreeLoader({dataUrl:'/server_response/product_initials.php'}),
enableDD:true,
containerScroll: true
});
// set the root node
var root = new Ext.tree.AsyncTreeNode({
text: 'Ext JS',
draggable:false,
id:'source'
});
tree.setRootNode(root);
ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'/server_response/informations.json'}),
reader: new Ext.data.JsonReader(
{root: 'information', id:'id'},
[
{name: 'id'},
{name: 'short_description'},
{name: 'modified_date', type: 'date', dateFormat: 'd.m.Y H:i'},
{name: 'valid_from', type: 'date', dateFormat: 'd.m.Y H:i'}
]
)
});
ds.load();