Author Topic: how to show overflow-x in pqgrid  (Read 2806 times)

dla3933

  • Newbie
  • *
  • Posts: 1
    • View Profile
how to show overflow-x in pqgrid
« on: May 18, 2020, 07:57:17 am »
I want to show overflow-x. But I don’t know how to set option.
I use pqgrid in v.7.1.0

So. I coding in event for refresh.

..//
Refresh: function(event, ui) {
     $(‘#grid’).find(‘.pq-body-outer .pq-grid-cont .pq-cont-right’).attr(‘style’, ‘overflow-x:auto !important’);
}

This code has problem. When refreshing grid, setting attribute.
« Last Edit: May 18, 2020, 08:00:43 am by dla3933 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: how to show overflow-x in pqgrid
« Reply #1 on: May 18, 2020, 09:30:49 am »
you are not supposed to change layout css of the grid.

If you need a horizontal scrollbar, then don't use scrollModel: { autoFit: true } and set a fixed width of the grid.

Example of grid with horizontal scrollbar: https://paramquery.com/pro/demos/autofill
« Last Edit: May 18, 2020, 09:48:29 am by paramvir »