Dataview

Hi,
I am using dataview inside layout and need to present items in 3 columns. I set xCount:3. But the whole layout was squeezed. Then I tried to set the width for the cell - width:900. The layout was widen but dataview started to have 5 items in a row.

I need to present data in 3 columns but don’t change the cell’s width.

Can you suggest me some way to do this?

Thank you,
Panco.

You need to use something like

webix.ui({
  view:"dataview", data:list_data,
  xCount:3,
  type:{ width:"auto" },
});

width:“auto” will force autosizing of dataview’s items to the container size