ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: neoinbiz on January 24, 2023, 02:24:20 am

Title: How to you enable resizing of columns?
Post by: neoinbiz 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" },
Title: Re: How to you enable resizing of columns?
Post by: paramvir 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
Title: Re: How to you enable resizing of columns?
Post by: neoinbiz on January 24, 2023, 11:34:10 pm
thank you