Author Topic: Grid property for fit to content  (Read 328 times)

pranit@srcomsec

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 99
    • View Profile
Grid property for fit to content
« 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.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Grid property for fit to content
« Reply #1 on: January 19, 2023, 06:39:26 am »

pranit@srcomsec

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 99
    • View Profile
Re: Grid property for fit to content
« Reply #2 on: January 24, 2023, 06:12:44 pm »
Thank you. This is working fine.