Add button in a cell

I have a grid with dynamic columns based on selected date range.
I want to add 2 buttons “Calculate” and “Save” in each column in a new row or footer row.
Calculate will manipulate values in a column and save will write to database.

Question:
How to add buttons to each column?

You can inject html tags in both rows and footer

grid.attachFooter("");

The more complex solution - create a shortcut which will render necessary content and use it instead of the actual code ( it is usefull if you plan to use such functionality a lot )

docs.dhtmlx.com/doku.php?id=dhtm … ader_extra