bug:The header of the grid displays errors

https://snippet.dhtmlx.com/pqqltb50

For the third grid, when the percentage width is used, the header displays an error

Hello @liudian,

Sorry for the delay with an answer.
If you mean specifying grid width through the config, it supports only int value in pixels:

So there is no possibility to specify width in percentage through the config. As I can see in the provided demo, you specified width of grid containers in percents - it’s correct approach.

Kind regards,

https://snippet.dhtmlx.com/1rsx07ar

Please copy it to the script for execution, so that it supports percentage mode

Hello @liudian,

The column expects width as number, as mentioned in the documentation:

While you are using % in the provided demo.

If you prefer to set the width in a more relative way, it’s better to use the gravity:

(it requires setting autoWidth for grid)

Here is an example that likely displays the result you tried to achieve (with no manual style setting for HTML nodes, as it is not the best approach to set sizes for grid elements):
https://snippet.dhtmlx.com/aefw2pvh

If you still have difficulties with configuring columns, it may be helpful if you provide more details about your requirement, so I will try to provide suggestions for your exact case.

Kind regards,