javascript - Is it possible to fix SlickGrid's column-resizing bug? - Stack Overflow

I've recently (re-)discovered SlickGrid, and am considering using it for a project I'm workin

I've recently (re-)discovered SlickGrid, and am considering using it for a project I'm working on, mainly because in many ways it appears to be the most versatile and powerful and performant (forgive the neologism) JavaScript grid yet created.

There are only a few problems. The first is that it very annoyingly doesn't resize its columns the way users expect: at the same time that they resize the column header. Many would be quick to point out that this has no practical implication, but I value usability and elegance greatly, and this damages both.

As far as usability, the first time I tried to resize a column I really thought it was not working. Undoubtedly others will be confused as well.

As far as elegance, it just pletely breaks the sense of actually physically manipulating objects.

I don't actually need all the power that SlickGrid gives for this current project, but if its weaknesses can be overe I see no reason not to use it for everything when I need a grid. In most respects it is extremely impressive.

I've recently (re-)discovered SlickGrid, and am considering using it for a project I'm working on, mainly because in many ways it appears to be the most versatile and powerful and performant (forgive the neologism) JavaScript grid yet created.

There are only a few problems. The first is that it very annoyingly doesn't resize its columns the way users expect: at the same time that they resize the column header. Many would be quick to point out that this has no practical implication, but I value usability and elegance greatly, and this damages both.

As far as usability, the first time I tried to resize a column I really thought it was not working. Undoubtedly others will be confused as well.

As far as elegance, it just pletely breaks the sense of actually physically manipulating objects.

I don't actually need all the power that SlickGrid gives for this current project, but if its weaknesses can be overe I see no reason not to use it for everything when I need a grid. In most respects it is extremely impressive.

Share Improve this question asked Sep 23, 2011 at 2:59 iconoclasticonoclast 22.8k16 gold badges110 silver badges156 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

Setting the syncColumnCellResize option when initialising the grid forces the grid to resize the columns synchronously as the user resizes the column header.

var grid;
var columns = [ ... columns stuff
var options = { ... other options,
                syncColumnCellResize: true
              };

var data = [ ... data stuff

grid = new Slick.Grid("#myGrid", data, columns, options);

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744213693a4563454.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信