Author Topic: How to trigger grid resize by manual?  (Read 892 times)

zhouqi

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 16
    • View Profile
How to trigger grid resize by manual?
« on: July 24, 2021, 04:09:29 pm »
Hello,

How to trigger grid resize by manual?

Use `refresh()` or `refreshDataAndView()` or `refreshView()` ?  `.resize()` method not found in api-methods.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to trigger grid resize by manual?
« Reply #1 on: July 26, 2021, 08:41:24 am »
grid can be resized by setting new height / width followed by refresh.

Code: [Select]
grid.option({width: 400, height: 500 });
grid.refresh();