Hi,
I have a TreeDataGrid representing products and their categories. The dataGrid has a column with an iconRenderer, and I want to have a “folder” icon near every category. So I set the icon in the columnGenerator like this:
event.getItem().isDirectory() ? JmixIcon.FOLDER : null;
Now, if I change the order of rows in the table (expand or sort), the rows having the icon never get rid of it. However, if I don’t use null but put some other icon, everything works fine:
event.getItem().isDirectory() ? JmixIcon.FOLDER : JmixIcon.OK;
So the question is: what should iconRenederer’s columnGenerator return to remove an existing icon?