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

In Persistent State directive isnt column group stored? #8516

Closed
amitmoondra opened this issue Nov 3, 2020 · 11 comments · Fixed by #10097
Closed

In Persistent State directive isnt column group stored? #8516

amitmoondra opened this issue Nov 3, 2020 · 11 comments · Fixed by #10097
Assignees
Labels
grid: multi-column-headers grid: state-persistence 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@amitmoondra
Copy link

amitmoondra commented Nov 3, 2020

I am using igxGridState directive to store the state, but found one issue which is i am not able to reapply column group header again after the state data is applied, can you guide me in the right direction please

@amitmoondra amitmoondra changed the title In Presistent State directive isnt column group stored? In Persistent State directive isnt column group stored? Nov 3, 2020
@amitmoondra
Copy link
Author

Can you provide me an example of how to restore multi column header/column grouping when saving data in state

@hanastasov
Copy link
Contributor

@amitmoondra, I am marking this as a feature request.

Meanwhile, you can either

  1. skip restoring columns when Multi Column Headers are available (State Persistence will still properly restore sorting, filtering, etc in a child column).

or

  1. Implement custom managing of the columns (keep the column configuration and create grid columns dinamically from it, as shown in this sample

@amitmoondra
Copy link
Author

amitmoondra commented Nov 4, 2020

Hi @hanastasov ,
I did implement the second way of creating columns, which is fine worked.
But now while applying the state after creating column dynamically, how would i achieve that?
still the issue here is reapplying the state => if i just recreated the columns the state is lost completely of columns isnt it.
I want to be able to reapply grouping and such after reappyling the column state.

@hanastasov
Copy link
Contributor

When you get/set the state of the grid, exclude the columns from it. try to store your columns config elsewhere, and try to recreate them on ngAfterViewInit opn your own, using the code provided.

After columns are recretared, you can restore the grid state using the setState Api.

Something similar to this.

@amitmoondra
Copy link
Author

Yeah i figured that out, apologies for not informing before. Already done that and it works perfectly.

@amitmoondra
Copy link
Author

I have successfully implemented using the work around way, I hope this feature request is done soon, as this would be very helpful to be stored in state and can be very useful in many cases or other users as well.
I hope this ticket wont be closed until the feature request is completed right?

@hanastasov
Copy link
Contributor

I am glad the suggested works for you. Yes, the issue will stay opened until resolved.

@github-actions
Copy link

github-actions bot commented Jan 5, 2021

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Jan 5, 2021
@hanastasov hanastasov removed the status: inactive Used to stale issues and pull requests label Jan 5, 2021
@github-actions
Copy link

github-actions bot commented Mar 7, 2021

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Mar 7, 2021
@hanastasov hanastasov reopened this Mar 15, 2021
@zdrawku zdrawku reopened this Jul 20, 2021
@hanastasov hanastasov removed the status: inactive Used to stale issues and pull requests label Jul 28, 2021
@hanastasov hanastasov reopened this Jul 28, 2021
@EddyNll
Copy link

EddyNll commented Aug 16, 2021

Is there any information on when this issue will be resolved/planned?

@radomirchev
Copy link
Contributor

Hi @EddyNll, the issue is in the planning for the next Sprint, starting on 30th of Aug.

@hanastasov hanastasov added the 🛠️ status: in-development Issues and PRs with active development on them label Sep 8, 2021
@dobromirts dobromirts added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Sep 9, 2021
zdrawku added a commit that referenced this issue Sep 10, 2021
feat(state-persistance): restore column group headers #8516 - master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid: multi-column-headers grid: state-persistence 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants