How to reset State in dx-pivot-grid?
See original GitHub issueI am using [stateStoring] like this-
<button (click)="Reset()">Reset State</button>
<dx-pivot-grid style="width:600px;display:block" [(dataSource)]="pivotSource" [allowSorting]="true"
[allowSortingBySummary]="true" [allowFiltering]="true" [allowExpandAll]="true" [showBorders]="true"
[fieldChooser]="{enabled: true}"
[fieldPanel]="{visible: true}"
[stateStoring]="{
enabled: true,
type: localStorage,
storageKey: dx-widget-gallery-pivotgrid-storing
}"
>
</dx-pivot-grid>
I want to know how to reset state on click on reset button in above snippet?
Also, Is there a way to store state other than localStorage type?
My Environment is- Angular2 version RC5 devextreme-angular2 version: 16.1.5
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
State Persistence - Angular Pivot Grid - DevExtreme
With localStorage, the state persists across browser sessions; with sessionStorage, it is reset after the current session. This demo uses localStorage.
Read more >Reset PivotGrid Expand State - Kendo UI for jQuery
The following example demonstrates how to reset the expand/collapse state and fetch the data again in a Kendo UI PivotGrid widget.
Read more >pivot table - DevExtreme Complete - ComponentSource
dxPivotGrid - State persistence does not have effect when a ... DevExtreme Pivot Grid PivotGrid- A scroll position is reset when an item...
Read more >Remove row in dx-pivot-grid - angular - Stack Overflow
I find out a workaround, it is not completely in manner of typescript and angular, because it avoids type checking, I add //@ts-ignore...
Read more >DevExpress WPF Pivot Grid: Getting Started - YouTube
Using DevExpress MVVM Magic with WPF · DevExpress WPF Tutorials · Kwiyitaho ||Self care. Final Part 2. · Revisiting App State : Carl...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello! You can read more about types of the storage here
Try to use the following code to reset the state:
Thanks @dxvladislavvolkov 👍