Dhtmlxgrid is not covering entire available space in page

I have a DHTMLX enterprise license for suit 6.5.
license reg. number - 19007023

I have grid having configurable columns. Sometimes columns can be three and sometimes thirteen. I need to make sure that grid covers entire available space in the page. But I am facing issue in this requirement.

Let say I have three columns, then grid will be shown like https://snippet.dhtmlx.com/9xfce9py
Here you can see that right side some blank space is there.

To cover that remaining space of the page, I added the property “autoWidth:true”, but it is causing issue when I have so many columns like https://snippet.dhtmlx.com/ujfbet74
Here horizontal scroll is also not available, so when I resize any column then another column is getting shrinked.

Is there any workaround for this issue so that grid covers available space as well as column width remain proper? Please let me know.

Hello, Arpita.

Unfortunately, this is the concept of the autoWidth mode. It extends or shrinks the columns widths to get rid of the horizontal scroll.
You may try to set the needed columns widths or try to use the “adjust” property to adjust the column widths according to its content.