I'm using SlickGid 2.0 and I'd like to be able to set the width of each column based on the longest string contained in the column. I'm fine calculating the required width, but I cannot figure out how to set the width of a column outside of faking a drag event. Is there any other way to individually set the widths of columns in SlickGrid?
问问题
711 次
1 回答
1
根据源码中的注释,可以设置model[cell].width
调整个别列的宽度。
请参阅此处的评论:
http://code.google.com/p/slickgrid/source/browse/trunk/slick.grid.js?r=9
于 2012-05-21T18:49:54.913 回答