dhtmlxGrid inside dhtmlxWindow but not fully docked


I would like to place dhtmlxGrid inside dhtmlxWindow along with two buttons. It is possible?

I was trying to create the grid via:

var myGrid = new dhtmlXGridObject('myGrid');

inside dhtmlxWindow but got javascript exception in the line:

myGrid .setColTypes("ro,ro,ro,ro,ro,ch,ed,ed"); // ro is undefined

and also


does not load anything.

Also, I tried another approach using

var myGrid = parent.windows.window('currentWindow').attachGrid();

That works but the grid filled all window area and buttons are not visible.

Can anybody advice how to solve that?


Please, try to set the height of your “myGrid” container.