Troubles with Widget Renderer TreeGrid

Hi,
I am having problems with Widget Renderer TreeGrid. Like in example (you can see the attachement) I created custom renderer for my grid. But after some operations (i.e. open all leaves and start collapsing-expanding them) some widgets get lost and not displayed.
Will be very grateful for some help