Datatable Copy Columns

I am trying copy column from one table to another. But I can’t insert the entire column. https://snippet.webix.com/icm4dbt4

Hello, @AndreyKosinov

Webix provides an opportunity for Dynamically Adding/Deleting Columns. The only question is the data that needs to be filled in this column. First of all, one can simply use the method parse to add the whole data set from the main datatable. When adding a column, the data will be pulled from the DataStore.
Please, check the snippet here: Code Snippet
If you need the data to be added the DataStore together with the addition of a column, please use the code below:

 const sourceData = grid.serialize();
                  const data = sourceData.map(obj => {
                    return {
                      id: obj.id,
                      [id]: obj[id]
                    } 
                  });                  
                  
                  grid2.parse(data);

This code allows you to form a collection with native ids of items.
The snippet is here: Code Snippet

Please, pay attention, the code below is used to check whether any column has been selected and whether this column seel hasn’t been added to the second datatable.

if (id && !grid2.getColumnConfig(id))