1
Help for ParamQuery Pro / How to set grid to align top row after scrolling?
« on: August 13, 2021, 01:08:01 pm »
Hello,
in older versions (4 and before), after scrolling, top row was always aligned to top (e.g. https://paramquery.com/pro/demos40/infinite_scroll),
but in newer versions, top row was no longer aligned to top (e.g. https://paramquery.com/pro/demos77/infiniteV).
Is it possible to set such feature in newer versions?
We tried this:
Thanks
in older versions (4 and before), after scrolling, top row was always aligned to top (e.g. https://paramquery.com/pro/demos40/infinite_scroll),
but in newer versions, top row was no longer aligned to top (e.g. https://paramquery.com/pro/demos77/infiniteV).
Is it possible to set such feature in newer versions?
We tried this:
Code: [Select]
let grid = pq.grid("#grid_json", obj);
grid.on( "scrollStop", function( event, ui ) {
grid.scrollRow( { rowIndxPage: grid.getViewPortIndx().initV } );
} );
but clicking on scrollbar arrow down, it jumps back on current row.Thanks