is there any API to add column to right and left of selected column?
If you aer talking about the dhx.Grid component you may try to use the setColumns() method to apply a new set of columns to your grid:
https://docs.dhtmlx.com/suite/grid__api__grid_setcolumns_method.html