Attach a toolbar above dhtmlxGrid header

Can you please help me in attaching a dhtmlxToolbar to the top of dhtmlxGrid, so that I can add common operation on grid cells, like copy/add/remove/re-order grid cells and create create new cells with a dialog pop-up.

I thought of putting these tool buttons on grid paging toolbar but, that won’t appear if we have very less data.

To place a toolbar at the top of the grid you need just to place container of a toolbar before the grid’s container

For example:

[code]

[/code]

I’m going to place toolbar in the bottom of the grid. I also used enableAutoWidth() .
How can I set size?

so place your dhtmlxToolbar container after the dhtmlxgrid container.
You may get the width of your grid after it’s init using the following code:
var grid_width=mygrid.entBox.style.width