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

fix(filter): Grid Preset Filters should work with Tree Data View #522

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

ghiscoding
Copy link
Owner

  • the Tree Data must execute pre-filtering with Tree Data when having Grid Preset Filters

- the Tree Data must execute pre-filtering with Tree Data when having Grid Preset Filters
grid.setColumns(gridColumns);
}
if (!this.customDataView) {
this.loadPresetsWhenDatasetInitialized();
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include all the other code below inside this if

}
}

// bind external filter (backend) when available or default onFilter (dataView)
if (gridOptions.enableFiltering && !this.customDataView) {
this.filterService.init(grid);
this.loadPresetsWhenDatasetInitialized();
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line since it will be shown below

@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #522 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #522   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          148       148           
  Lines         9623      9634   +11     
  Branches      3360      3366    +6     
=========================================
+ Hits          9623      9634   +11     
Impacted Files Coverage Δ
...lickgrid/components/angular-slickgrid.component.ts 100.00% <100.00%> (ø)
...ngular-slickgrid/extensions/headerMenuExtension.ts 100.00% <100.00%> (ø)
...dules/angular-slickgrid/services/filter.service.ts 100.00% <100.00%> (ø)
...modules/angular-slickgrid/services/sort.service.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c6c8e1...a89207c. Read the comment docs.

@ghiscoding ghiscoding merged commit f574fe4 into master Jul 14, 2020
@ghiscoding ghiscoding deleted the fix/tree-data-grid-presets branch July 14, 2020 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants