datatable empty after removing and adding view

Hi there,

i have a content layout, to this i’m adding a datatable with addView(), then i add my items to the datatable.
That works fine.
But if i remove the datatable-View and add it again. then no items i have added are displayed

here is a snippet showing my problem:

http://webix.com/snippet/024e9458

pls remove. found myself, refreshColumns()

It will work without extra refreshColumns call if you are using unique object instead of sharing the same showAntraege structure.

http://webix.com/snippet/7dac6f48

I have added webix.copy calls, to make a new copy of showAntraege structure

Strange… Both snippets are showing nothing but a scrollbar and a same width header above it. Tested with Opera 35.0 and Chrome 48.0

That’s the same problem I’m facing in my code

@ofpires for now, you need to use also

$$("content").resize();

as the added layout trying to adjust to the undefined width of the inner datatable.

http://webix.com/snippet/9c78f5a7

We’ll consider the improvement of this behavior for the future releases.

Thank you @Listopad. It worked perfectly.