In Persistent State directive isnt column group stored?
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
Can you provide me an example of how to restore multi column header/column grouping when saving data in state
@amitmoondra, I am marking this as a feature request.
Meanwhile, you can either
- skip restoring columns when Multi Column Headers are available (State Persistence will still properly restore sorting, filtering, etc in a child column).
or
- Implement custom managing of the columns (keep the column configuration and create grid columns dinamically from it, as shown in this sample
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.
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.
Yeah i figured that out, apologies for not informing before. Already done that and it works perfectly.
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?
I am glad the suggested works for you. Yes, the issue will stay opened until resolved.
There has been no recent activity and this issue has been marked inactive.
There has been no recent activity and this issue has been marked inactive.
Is there any information on when this issue will be resolved/planned?
Hi @EddyNll, the issue is in the planning for the next Sprint, starting on 30th of Aug.