question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Virtual scrolling should be an option

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When externalPaging (and count, offset) and scrollbarV is combined, the (page) event fires madly on every scroll event. Can’t really tell if some Page was pressed in footer, or is fired by scroll event.

Expected behavior It should be possible to use scrollbarV just for the sake of overview, not firing any page events, as for that I intend to use footer paging [1,2,3] etc. Like an option [virtualScroll]=“false/true”

What is the motivation / use case for changing the behavior? Sometimes/for some projects the load times are long for server side paging requests, and we want to run them only when actually Paging is initiated - not when scroll is all way down or up. However having the V scroll is nice feature for fixed height pages.

Please tell us about your environment: Windows

  • Table version: 0.8.x 11.0.4

  • Angular version: 2.0.x 4.4.4

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] Latest Chrome

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
osnoser1commented, Apr 7, 2018

Hello, there is some reason why there is no merge of #1297? 😞

0reactions
mail2venkatcommented, Sep 26, 2018

Seems…, some of the styles are missing, Try This

[scrollbarV]=“true” to set the scroll

[scrollbarV]=“false” to unset the scroll

HTML

<ngx-datatable class=“material” [columnMode]=“‘flex’” [headerHeight]=“50” [footerHeight]=“50” [scrollbarV]=“true” [rows]=“rows”> <ngx-datatable-column name=“Name” [flexGrow]=“1”> <ng-template let-value="value" ngx-datatable-cell-template> {{value}} </ng-template> </ngx-datatable-column> <ngx-datatable-column name=“Gender” [flexGrow]=“1”> <ng-template let-row="row" let-value="value" ngx-datatable-cell-template> {{value}} </ng-template> </ngx-datatable-column> <ngx-datatable-column name=“company” [flexGrow]=“1”> <ng-template let-value="value" ngx-datatable-cell-template> {{value}} </ng-template> </ngx-datatable-column> </ngx-datatable>

CSS

.ngx-datatable.scroll-vertical .datatable-body { overflow-y: auto; } .ngx-datatable.scroll-vertical { height: 70vh; }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtual scrolling: Core principles and basic implementation in ...
In this tutorial, we'll go over the basics and learn how to create a reusable React component to solve the simplest virtual scrolling...
Read more >
Scrolling | Angular Material
The <cdk-virtual-scroll-viewport> displays large lists of elements performantly by only rendering the items that fit on-screen. Loading hundreds of elements can ...
Read more >
Learn how to use Virtual Scrolling in Angular - Medium
The ScrollingModule takes a large list of data and dynamically loads and unloads data from the DOM only when it comes into the...
Read more >
ion-virtual-scroll - Ionic Framework
For virtual scrolling options in Ionic Angular, please see Angular Virtual Scroll ... but without an estimate the virtual scroll will not render...
Read more >
Cdk virtual-scroll inside mat-select for mat-option
The virtual scroll viewport needs a size in order to know, how big the scroll container must be. This can be done by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found