How do I autosize the column in SlickGrid?

前端 未结 7 1306
情歌与酒
情歌与酒 2020-12-08 00:25

I want slickgrid to autosize the columns based on the widest content or header text - whichever is wider. In simpler terms, I want it to simulate the default behavior of reg

7条回答
  •  借酒劲吻你
    2020-12-08 01:01

    Make this simple adjustment to Naresh's https://github.com/naresh-n/slickgrid-column-data-autosize, on the init function:

    • Add $container.ready(resizeAllColumns); to the init function.

    This ensures the columns autoresize on initial load

提交回复
热议问题