Layout attach not working without header

Hi,

omitting header property of layout cell works in suite 7 but not in 8 it as it looks like.
E.g. in this snippet, you will see grid when you set “header” but you dont see grid when you delete the header property in initalisation object:

https://snippet.dhtmlx.com/h0e8kq55

is this a bug or by design? how can i use layout cell without header?

Hello, the ‘problem’ is in case you pass an id when you are creating the grid, like:

new dhx.Grid(“grid”, {…});

In this case the layout attaches the component by the body. If you want it to be attached to the layout cell, just remove the id, like this:

new dhx.Grid(null, {…});

Here is the updated example:

https://snippet.dhtmlx.com/pz6160ja

1 Like

My god such a simple solution, thank you so much!

1 Like