Author Topic: height: "flex"  (Read 425 times)

arbyter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
  • Retired IT Guy
    • View Profile
height: "flex"
« on: September 26, 2022, 04:29:26 pm »
hi Paramvir
when i use flex as value  of heigt, the whole Grid freezes.
I tried it also in your Million Record Demo, there it is the same.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: height: "flex"
« Reply #1 on: September 26, 2022, 08:50:47 pm »
Of course, height: flex with million records would freeze the grid and eventually crash the web page / browser because height 'flex' causes the whole DOM of the grid to be rendered unless virtualWin is used.

Please check this example  https://paramquery.com/pro/demos/virtual_window


Otherwise height: flex can be used only for upto few hundred records.

Beyond that use the virtual rendering of the grid by using ( maxHeight along with flex ) or defining finite height.