ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: dla3933 on May 18, 2020, 07:57:17 am

Title: how to show overflow-x in pqgrid
Post by: dla3933 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.
Title: Re: how to show overflow-x in pqgrid
Post by: paramvir 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