Hide icon tree after no data request

How can I hide icon again after load ajax onDataRequest no data found ?
https://snippet.webix.com/k9ztn0h8

Hi @finzaiko

As the rendered icon depends on two parameters (obj.open && obj.$count <= 0), you can change one or both of them to render the proper icon.

In the below example, the sequence of actions is changed a bit to update these parameters in time and demonstrate two options:

  1. folder may stay unopened (so the user may try to open it one more time)
  2. folder with no nested data may become an item (see line 27)

https://snippet.webix.com/6zo2hvhy

Hi @Listopad

Yes, it working, Thank you for your detailed explanation and great support