Author Topic: How to hide paramquery horizontan scrollbar and show browser scrollbar  (Read 2689 times)

dagarwal

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
I want to show scrollbar rather than paramquery grid scrollbar if columns is not fitting on screen width.
« Last Edit: October 04, 2016, 11:28:31 pm by dagarwal »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: How to hide paramquery horizontan scrollbar and show browser scrollbar
« Reply #1 on: October 04, 2016, 11:38:01 pm »
Please use width: 'flex'

dagarwal

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How to hide paramquery horizontan scrollbar and show browser scrollbar
« Reply #2 on: October 06, 2016, 06:12:34 pm »
I am using width:flex and it is creating browser scrollbar when no of columns is high. This is right. when no of columns is less, grid width decreases less than browser width and grid is not using full browser width.

Requirement : if no of columns is less, then grid must use browser width and visible in full width of browser and if no of columns is high, then scrollbar visible.

I tried to use minWidth: jQuery("window").width() with width:flex but not working.

What is solution

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: How to hide paramquery horizontan scrollbar and show browser scrollbar
« Reply #3 on: January 16, 2024, 11:45:42 am »
Toggle the grid width between 'flex' and 'auto' depending upon the number of columns.