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

Draggable Grouping - remove group #407

Closed
pwidanka opened this issue Mar 2, 2020 · 3 comments
Closed

Draggable Grouping - remove group #407

pwidanka opened this issue Mar 2, 2020 · 3 comments
Labels

Comments

@pwidanka
Copy link

pwidanka commented Mar 2, 2020

I'm submitting a Bug report

HI,

Your Environment

Software Version(s)
Angular 8.2
Angular-Slickgrid 2.17
TypeScript 3.5

Describe the Bug

Example 19 - don't see dataset on grid after remove grouping

Steps to Reproduce

I set grouping by title -> click collapse all groups -> remove grouping

Expected Behavior

Should show all dataset

Current Behavior

image

Thank You

@ghiscoding
Copy link
Owner

ghiscoding commented Mar 2, 2020

just call a render on the grid object and that will fix it

clearGrouping() {
  // ...
  this.gridObj.render();
}

or invalidate which will call the render internally

@ghiscoding ghiscoding added the bug label Mar 2, 2020
ghiscoding added a commit that referenced this issue Mar 2, 2020
fix(example): should re-render after clearing groups, fixes #407
@ghiscoding
Copy link
Owner

I've update the example to use this.gridObj.invalidate() and now it's all good, the invalidate method in SlickGrid is a 2 in 1, it invalidate the row and re-render the grid. You can see the Example 19 now works as expected.

Please upvote the lib if you haven't already ⭐️ Thanks

@pwidanka
Copy link
Author

pwidanka commented Mar 3, 2020

Works like a charm.

But if You want to work perfectly. I added this.gridObj.invalidate() on event (red X) in pre-header row

I have given you ⭐️ 2 years ago :)
Best wishes

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

No branches or pull requests

2 participants