How to disable a node in a treelist in Ext JS 7 classic

151 Views Asked by At

Hi can anyone please tell me how i can disable a node in a treelist. I am using Ext JS 7 classic.

I tried a config disabled: true on the treelistitem something like the below code. this config is there on the treelistitem in Ext JS 7 classic docs. But it does not work. Can anyone help please.

{
     text: eachRevision.name,
     iconCls: 'x-fa fa-folder',
     leaf: false,
     disabled: true
}
1

There are 1 best solutions below

1
Nanne V. On

Try using 'visible' instead of disabled. Set 'visible' to false on record in the node store.