Author Topic: How to you enable resizing of columns?  (Read 370 times)

neoinbiz

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 22
    • View Profile
How to you enable resizing of columns?
« on: January 24, 2023, 02:24:20 am »
I have the latest 8.6.0 grid files but for some reason I cannot get the columns to resize when manually.
I can reorder but resizing does nothing.
Code: [Select]
    var obj = {
        width: gridWidth,
        height: "700",
        editable: false,
        fillHandle: '',
        resizable: true,
        hoverMode: 'row',
        selectionModel: { type: 'row', column: false },
        sortModel: {
            sorter: thisSort,
            space: true,
            multiKey: null
        },
        scrollModel: { autoFit: true },
        pageModel: {
            type: "local", rPP: 100, strRpp: "{0}", rPPOptions: [50, 100, 500, 1000],
            strDisplay: "Displaying {0} to {1} of {2} Records", strPage: "{0} / {1}",
            layout: ["first", "prev", "|", "strPage", "|", "next", "last", "|", "strRpp", "|", "refresh", "|", "strDisplay"]
        },
        filterModel: { on: true, mode: "AND", header: true, type: "local" },

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How to you enable resizing of columns?
« Reply #1 on: January 24, 2023, 06:08:09 am »
columns are resizable by default unless the column.resizable property is set to false or column.width is set in percent.

https://paramquery.com/pro/api#option-column-resizable

neoinbiz

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: How to you enable resizing of columns?
« Reply #2 on: January 24, 2023, 11:34:10 pm »
thank you