ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: pranit@srcomsec on January 18, 2023, 08:55:05 pm

Title: Grid property for fit to content
Post by: pranit@srcomsec on January 18, 2023, 08:55:05 pm
The grid with the property as below which is autoFit column based on grid data with Grid area.
Code: [Select]
{
name: 'Auto fit Columns',
action: function () {
this.option('scrollModel', { autoFit: true });
this.refresh();
}
}

We need to autofit with grid column content which is working when we double-click on the header pipe (the line between two header names). Please advise how can we call this like autoFit scrollModel.

Title: Re: Grid property for fit to content
Post by: paramvir on January 19, 2023, 06:39:26 am
Please use flex method:

https://paramquery.com/pro/api#method-flex
Title: Re: Grid property for fit to content
Post by: pranit@srcomsec on January 24, 2023, 06:12:44 pm
Thank you. This is working fine.