Horizontal/Vertical Data table

Hi webix team,

On button first click we want the data table to appear in horizontal way. On second click we want data table table to appear in vertical manner (as there in snippet)

https://snippet.webix.com/jx5dgb5k

Hello,

First of all I should admit that when you change the position of datatable it’s create a new dataset that is different to a first one.
Webix DataTable manages the data as rows, so the only way to do so is to modify the source dataset via plain JS (similar to the transpose of matrix).
As a sample for JSON (extracted from the source grid), please check the following sample: Code Snippet
Also, please note that you will need to reconfigure columns for the new dataset by hand, if you plan to use the same datatable.
In addition, if you want to rebuild the view this article will be useful.