TreeGrid: LitRenderer for HierarchyColumn

A normal Grid can use a LitRenderer to render Columns more efficiently. e.g:

this.grid.addColumn(LitRenderer.<MyEntry>of(
   "<span>${item.text}</di-text-cell>"
).withProperty("text", e -> e.getLabel()));

When using a TreeGrid i dont see a option to use a LitRenderer for hierarchy columns. Is this generally not possible or is this feature just missing ?

Hi, this is a missing feature. For now, you can define a custom hierarchy column with a LitRenderer as in the example here.

1 Like