Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve virtualization as a flag. The original idea is be able to configure paging and scrolling without virtualization #1297

Merged
merged 5 commits into from
Jul 27, 2018

Conversation

lneninger
Copy link
Contributor

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • [x ] Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
The vertical scroll feature [scrollbarV]="true" is assuming that virtualization is active. So, when is desired to have external pagination with scrolling and no virtualization the table mechanism try the scrolling as a paging event and force the current page.

What is the new behavior?
With external pagination and scrollbarV and no virtualization the data-table mechanism trigger the paging event on event onFooterPage only avoiding the undesired behavior of auto paging back to first page after select a page on the pagination component; which is the desired behavior. The original behavior for scrollbarV with virtualization remains the same as well as paging without scrolling.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • [x ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@lgoudriaan
Copy link

lgoudriaan commented Apr 18, 2018

@amcdnl Can you take a look at this? This will fix: #816,#349 and #1126
I have tested this myself

@osnoser1
Copy link
Contributor

osnoser1 commented Jun 5, 2018

Hello, I have several months working with these changes and they are working correctly, you could have an eye here, please? 😪

@arampp
Copy link

arampp commented Jul 3, 2018

Works like a charm, please merge this PR. I need this feature and currently I am forced to work with a fork to have this feature (see https://github.com/XITASO/ngx-datatable/tree/merge_pr_1297)

lneninger and others added 3 commits July 5, 2018 10:10
… been used in the scroll mechanism. In the real world this property comes from datatable component as @input parameter
@michDostal
Copy link

Hello, please is it possible to have this PR merged in near future? Thank you

@marjan-georgiev marjan-georgiev merged commit 806f45f into swimlane:master Jul 27, 2018
@marjan-georgiev
Copy link
Member

Looks good. Thank you @lneninger 👍

bhuber2010 pushed a commit to bhuber2010/ngx-datatable that referenced this pull request May 1, 2019
…figure paging and scrolling without virtualization (swimlane#1297)

* Improve core. Adding virtualization flag at scrollbarV conditions

* Fixing Conflicts with master branch

* Fixing test. The test doesn't define virtualization property whith is been used in the scroll mechanism. In the real world this property comes from datatable component as @input parameter

* Removing debugger keyword from test

# Conflicts:
#	demo/paging/scrolling-server.component.ts
#	src/components/body/body.component.spec.ts
@isostarec
Copy link

isostarec commented Dec 31, 2019

IMO [virtualization] should be false by default. I integrated standard pagination and lost a few hours on wondering why does it change pages suddenly. Also, I don't have [scrollbarV] active and it happens on some browsers while on others it didn't happen and pagination worked normally. Had a hard time recreating the bug. Is there a reason [virtualization] isn't false by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants