Can I fix a SlickGrid error to resize a column?

I recently (re) discovered SlickGrid and am considering using it for a project that I am working on, mainly because in many respects it seems to be the most universal and powerful and efficient (forgive neologism) JavaScript mesh has been created.

There are only a few problems. Firstly, it is very annoying not to resize the columns as users expect: at the same time, they resize the column heading. Many would quickly note that this is not practical, but I really appreciate the convenience and elegance, and it is detrimental to both.

As for usability, the first time I tried to resize a column, I really thought that it was not working. Surely others will be embarrassed too.

As for elegance, it just completely violates the meaning of physical manipulation of objects.

I really do not need all the power that SlickGrid gives for this current project, but if its shortcomings can be overcome, I see no reason not to use it for everything when I need a grid. In most cases, this is very impressive.

+4
source share
1 answer

Setting the syncColumnCellResize parameter during grid initialization forces the grid to resize 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); 
+9
source

All Articles