Colspan lost after ajax call

Hello,

I have a same situation as at this link: http://webix.com/snippet/24c59c91 except that I use ajax to call data instead of function.

The datatable is generated and inserted in

during ajax call. When user click something else, new ajax call is generated which will delete datatable with document.getElementById("").innerHTML="" and reload new datatable in same
BUT

colspan is lost. No errors generated. What am I doing wrong?

Hi Arnes,

It is a bug on our end - spans are not drawn for several datatables on the page (even if added in turn, like in your case). We will fix it in the next update.

As to your code, I would recomment to call a destructor function for the layout with datatable and button to clean everything up.

layout.destructor()