Search code examples
slickgrid

Slickgrid minWidth and maxWidth ignored


Slickgrid seems to be ignoring the minWidth and maxWidth attributes. Am I missing something?

Note in the following jsFiddle, one of the columns has a width of 300 which is honored, while the other columns have minWidth and maxWidth set to 300 without any effect.

http://jsfiddle.net/ericjohannsen/ZSJEj/1/


Solution

  • The minWidth & maxWidth only apply to column resizing operations or when the columns are auto-sized. You are still expected to specify the initial width.

    UPDATED: I've added column width clamping to SlickGrid.