vendredi 30 mai 2014

How get column Id in Tree Panel

var treePanel = Ext.create('Ext.tree.Panel', { id: 'tree-panel', title: 'Sample Layouts', region:'north', split: true, height: 560, minSize: 150, rootVisible: false, autoScroll: true, store: store, columns: [ { xtype: 'treecolumn', text: 'name', flex: 2.5, sortable: true, dataIndex: 'name' }, { text: 'id',//I want to get this id flex: 1, dataIndex: 'id', sortable: true } , { text: 'Done', dataIndex: 'done', width: 55, stopSelection: false, menuDisabled: true, listeners:{ renderer:function(value, metaData, record, rowIndex, colIndex, store,column){ My code... } } }] });

How can i get column id or dataIndex in the rendered fuction


for example if the column is 'Done' how can i get its dataIndex 'done'

Please do help me in getting this since column["id"] is tree node id.





Aucun commentaire:

Enregistrer un commentaire