-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(presets): Grid State & Presets stopped working for columns
- there was mainly 3 problems 1. ColumnPicker & GridMenu were re-registered but their instances were not overwritten and because of that, the onColumnsChanged in the GridState was never triggering anymore because the subscribe was on the instance that no longer existed 2. we were using the setColumns with allColumns, that was a regression introduced by previous commit, this in terms was cancelling any presets of columns from coming in 3. header menu was not triggering any changes, hiding a column and/or sorting a column had no effect on the Grid State. - Example 15 is the reference for Grid State & Presets
- Loading branch information
Ghislain Beaulac
authored and
Ghislain Beaulac
committed
Aug 5, 2019
1 parent
d9a2325
commit 4e0b528
Showing
23 changed files
with
571 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
<div class="container-fluid"> | ||
<h2>{{title}}</h2> | ||
<div class="subtitle" [innerHTML]="subTitle"></div> | ||
<h2>{{title}}</h2> | ||
<div class="subtitle" | ||
[innerHTML]="subTitle"></div> | ||
|
||
<button class="btn btn-default btn-sm" (click)="clearGridStateFromLocalStorage()"> | ||
<i class="fa fa-times"></i> | ||
Clear Grid State from Local Storage & Reset Grid | ||
</button> | ||
<button class="btn btn-default btn-sm" (click)="switchLanguage()"> | ||
<i class="fa fa-language"></i> | ||
Switch Language | ||
</button> | ||
<button class="btn btn-default btn-sm" | ||
(click)="clearGridStateFromLocalStorage()" | ||
data-test="reset-button"> | ||
<i class="fa fa-times"></i> | ||
Clear Grid State from Local Storage & Reset Grid | ||
</button> | ||
<button class="btn btn-default btn-sm" | ||
(click)="switchLanguage()" | ||
data-test="language-button"> | ||
<i class="fa fa-language"></i> | ||
Switch Language | ||
</button> | ||
<b>Locale:</b> <span style="font-style: italic" | ||
data-test="selected-locale">{{selectedLanguage + '.json'}}</span> | ||
|
||
<angular-slickgrid gridId="grid16" | ||
[columnDefinitions]="columnDefinitions" | ||
[gridOptions]="gridOptions" | ||
[dataset]="dataset" | ||
(onAngularGridCreated)="angularGridReady($event)" | ||
(onGridStateChanged)="gridStateChanged($event)" | ||
(onBeforeGridDestroy)="saveCurrentGridState($event)"> | ||
</angular-slickgrid> | ||
</div> | ||
<angular-slickgrid gridId="grid16" | ||
[columnDefinitions]="columnDefinitions" | ||
[gridOptions]="gridOptions" | ||
[dataset]="dataset" | ||
(onAngularGridCreated)="angularGridReady($event)" | ||
(onGridStateChanged)="gridStateChanged($event)" | ||
(onBeforeGridDestroy)="saveCurrentGridState($event)"> | ||
</angular-slickgrid> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.