- Parameters:
- $autowidth: true or false
- Description:
- Use this method to set datagrid width as the same as the current window width.
- Automatically resizes based on window width (verison 6+)
- Example:
1 | $dg -> enable_autowidth(true); |
Optional
Sometimes the browser overcalculates the document width and displays the scrollbar. You can hide it using the following CSS.
1 2 3 | body{ overflow:hidden; } |