Dhtmlx Tree Grid AutoWidth

Attempted several combinations to have a TreeGrid width scale to a window or element to no success.


On the snippet editor it returns an error where the observer fails when the window is sized

Could you please, clarify your request

I don’t think there’s a way to set components to automatically adjust their width to match their container, because they use absolute values and not percentages. However, you can use the document.body.onresize function to determine the width of the container when it’s resized, and resize the component to that value. See my update to your snippet: https://snippet.dhtmlx.com/saa2fcjf