PDA

View Full Version : problem with TreeGrid from http://www.max-bazhenov.com/dev/ux.maximgb.tg/index.php



parthiv_aegis
4 Mar 2011, 1:51 AM
Hi all,

I am using TreeGrid from http://www.max-bazhenov.com/dev/ux.maximgb.tg/index.php,
and implemented adjacancy list tree grid, but i am facing a strange problem with this.

It is displaying the data in tree grid panel, but not in proper tree format, i mean not in proper parent and child relation.....

Here is code that I am using…….

var ntwkTreeStore = new Ext.ux.maximgb.tg.AdjacencyListStore({
proxy: new Ext.data.HttpProxy({ url: '../echo/topology/readAssetTreeTopo', method: 'GET'}),
baseParams:{objidParent:objidparent,showall:Ef.showall},
reader: new Ext.data.JsonReader({
fields:['corporatecode','objid','statusvalue','signalstrength', 'objidParent',"_parent","_is_leaf","_id"],
totalProperty:"CAssetTreeList.totalrecord",
id:'_id',
root:"CAssetTreeList.data",
successProperty:"CAssetTreeList.success"
})
});



var ntwkGrid = new Ext.ux.maximgb.tg.GridPanel({
layout:"fit",
store: ntwkTreeStore,
master_column_id : 'corporatecode',
columns: [{id:'corporatecode',header: 'Corpcode',dataIndex: 'corporatecode',width: 100},
{header: 'objid',dataIndex: 'objid',width:100},
{header: 'Status',dataIndex: 'statusvalue',width:100},
{header:"Signal Strength",dataIndex:"signalstrength",width:100}
],
stripeRows: true,
autoExpandColumn: 'corporatecode',
root_title: 'Corporatecodes',
bbar:new Ext.ux.maximgb.tg.PagingToolbar({
store: ntwkTreeStore,
displayInfo: true,
pageSize: 10
})
});

I tried lot to find solution, but no result.
Please Help me out.

Thanks in Advance.