I am trying to understand how the views work, and having a little difficulty. I have a single cell layout with a toolbar at the top and a div attached to the layout to hold some content. This works fine. However if I do not attach the grid directly to the layout but rather to a view, the toolbar gets overwritten. Here is a sample of the code:
layout = new dhtmlXLayoutObject(document.body, “1C”);
var div = document.getElementById(‘content’);
div.innerHTML = “Hello World!”;
layout.cells(‘a’).view(‘foo’).attachObject(div);
layout.cells(‘a’).view(‘foo’).attachObject(div);