nareshkokkula
2 Apr 2012, 1:48 AM
Hi..Can some one help me in restricting a tree node to be not selected.I used the following code to deselect tree node in the beforeselect event.but its selecting with a ash colored line... var srcTree = Ext.create('Ext.tree.Panel', { title: 'Source Tree', width: 300, autoScroll: true, animate: true, enableDD: true, ddGroup: 'secondTreeDDGroup', multiSelect: true, containerScroll: true, region: 'center', store: store, viewConfig: { plugins: { ddGroup: 'selDD', ptype: 'treeviewdragdrop', enableDrop: false } }, listeners: { 'select': BeforeSelect } }); function BeforeSelect(rownModel, record, index, eOpts) { if (record.data.text == "Energy foods") { rownModel.deselect(index, true); } }Please help me.Thanks,33440Naresh