Pregunta

I won't show treegrid icon each node.

I tried using: 1. "iconCls" config, with 'void' value. 2. Using a 'wrong' value.

Finally, I have the same that I expected, 'defaults icons' for all rows.

Someone know any form to delete these icons ?

thanks for all.

¿Fue útil?

Solución

Just make sure you give an iconCls of, say treenode-no-icon. I do so in my model:

{name: 'iconCls', type: 'string', defaultValue: 'treenode-no-icon'},

Then in your css include:

.treenode-no-icon
{
    display : none !important;
}

Otros consejos

This was a few years ago, but here is a solution using ExtJS 6 that I discovered.

Using a custom theme, in the theme file associated with Ext.tree.View, I added the line:

$tree-icon-width : 0px;

My treepanel data now displays without any visible icons.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top