Author Topic: Resize Grid if width is "auto"?  (Read 2639 times)

mshapiro

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Resize Grid if width is "auto"?
« on: September 16, 2014, 05:24:47 am »
I have an issue with making a grid resizable.  If I specify the width as a numeric (width: 950) then resizing works normally.  If I use "auto" or a percentage, then the grid width is rendered correctly but the resize icon disappears.  I can resize the height by grabbing the lower border, but not the width.  Is there a conflict with another setting?  These are the layout options I am using:

        resizable: true,
        wrap: false,
        hwrap: true,
        columnBorders: true,
        sortable: true,
        numberCell: { show: true },
        flexWidth: false,
        freezeCols: 6, 
        flexHeight: false,
        virtualX: true,
        virtualY: true,
        scrollModel: { horizontal: true, lastColumn: 'none' },
        selectionModel: { type: 'none', subtype: 'incr', cbHeader: false, cbAll: true },         
        hoverMode: 'cell',
        draggable: true,
        width: 'auto'   // resizing only works if a numeric value is used

Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Resize Grid if width is "auto"?
« Reply #1 on: September 16, 2014, 09:07:36 am »
That is by design and is the intended behavior.

When the grid width is auto or in percent, its width becomes dependent upon its parent and its width should not be resizable anymore independently of the parent. you could make the parent resizable in this case.

Example:

http://paramquery.com/pro/demos/fluid_popup