{
    "componentChunkName": "component---src-templates-doc-page-jsx",
    "path": "/angular-data-grid/aggregation-filtering/",
    "result": {"data":{"markdownRemark":{"htmlAst":{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This section describes the different ways that aggregated values can be filtered in the grid."}]},{"type":"element","tagName":"h2","properties":{"id":"default-filtering-with-aggregated-values","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#default-filtering-with-aggregated-values","ariaLabel":"default filtering with aggregated values permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Default Filtering with Aggregated Values"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"By default, when using "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/filtering-overview/"},"children":[{"type":"text","value":"Filters"}]},{"type":"text","value":" and "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation/"},"children":[{"type":"text","value":"Aggregations"}]},{"type":"text","value":" the filtering will only apply to the cell values in leaf-level rows, and not to any of the aggregated values in the group rows. Also, when a column filter is applied, the aggregated values shown in the group rows will be updated based on the filtered rows only."}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\nconst gridOptions = {\n    columnDefs: [\n        { field: 'country', rowGroup: true },\n        { field: 'athlete', rowGroup: true },\n        { field: 'year' },\n        { field: 'total', aggFunc: 'sum', filter: 'agNumberColumnFilter' },\n    ]\n}\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In the snippet above, rows are grouped by "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"country"}]},{"type":"text","value":" and "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"athlete"}]},{"type":"text","value":". The "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation/#enabling-aggregation"},"children":[{"type":"text","value":"Built-In Function"}]},{"type":"text","value":" "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"sum"}]},{"type":"text","value":" is used to aggregate the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" values."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The example below demonstrates how aggregated values update to reflect the applied filters."}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Apply a filter for the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column with the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"4"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Note how the value in the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column for the United States is now "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"12"}]},{"type":"text","value":" instead of "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"38"}]},{"type":"text","value":", reflecting the now filtered leaf rows."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Aggregation and Filters","name":"filters","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"rowgrouping\", \"menu\", \"setfilter\"] }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"suppressing-aggregation-updates-when-filtering","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#suppressing-aggregation-updates-when-filtering","ariaLabel":"suppressing aggregation updates when filtering permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Suppressing Aggregation Updates When Filtering"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To prevent the "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation-filtering/#default-filtering"},"children":[{"type":"text","value":"Default Behaviour"}]},{"type":"text","value":" of "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation/"},"children":[{"type":"text","value":"Aggregated"}]},{"type":"text","value":" values being calculated from the "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/filtering-overview/"},"children":[{"type":"text","value":"Filtered"}]},{"type":"text","value":" results only, and instead calculate them from the pre-filtered data, enable the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"suppressAggFilteredOnly"}]},{"type":"text","value":" option."}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\nconst gridOptions = {\n    suppressAggFilteredOnly: true,\n}\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The example below demonstrates this behaviour - when a filter is applied, group row aggregated values remain unchanged and show their original values representing the original unfiltered data."}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Apply a filter for the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"year"}]},{"type":"text","value":" column with the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"2008"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Note how the values in the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column "},{"type":"element","tagName":"em","properties":{},"children":[{"type":"text","value":"do not"}]},{"type":"text","value":" update to reflect the filtered data."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Suppress Filtered Only","name":"suppress-filtered-only","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"rowgrouping\", \"menu\", \"setfilter\"] }"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"filtering-group-aggregations","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#filtering-group-aggregations","ariaLabel":"filtering group aggregations permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Filtering Group Aggregations"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation-filtering/#default-filtering"},"children":[{"type":"text","value":"Default Behaviour"}]},{"type":"text","value":" of "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/filtering-overview/"},"children":[{"type":"text","value":"Filtering"}]},{"type":"text","value":" is to only filter the leaf-level rows and to ignore cell values in "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/grouping/"},"children":[{"type":"text","value":"Group Rows"}]},{"type":"text","value":". This prevents filtering group rows based on "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation/"},"children":[{"type":"text","value":"Aggregation"}]},{"type":"text","value":" values."}]},{"type":"element","tagName":"h3","properties":{"id":"enabling-group-aggregation-filtering","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#enabling-group-aggregation-filtering","ariaLabel":"enabling group aggregation filtering permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Enabling Group Aggregation Filtering"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"By default, column filters are not applied to cell values shown in "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/grouping/"},"children":[{"type":"text","value":"Group Rows"}]},{"type":"text","value":" as they do not usually\nhave any data of their own. However when using "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation/"},"children":[{"type":"text","value":"Aggregation"}]},{"type":"text","value":", group rows will show aggregated values computed based on their child rows."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can filter the grid based on the group row aggregated values by setting the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAggFiltering"}]},{"type":"text","value":" grid option as shown below:"}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\nconst gridOptions = {\n    groupAggFiltering: true,\n}\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"With this option set, when an aggregated value in a group row matches the filter, the matching group row will be shown as well as:"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"all the parent group rows of the matching group row up to the root level"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"all the child and leaf-level rows of the matching group row"}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The example below demonstrates the behaviour when filtering aggregated values. Please go through the list of filtering scenarios below to better understand this functionality."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note the following:"}]},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Using the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column apply a filter for the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"6"}]},{"type":"text","value":". Note in the filtered grid the leaf row "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Natalie Coughlin"}]},{"type":"text","value":" is displayed with all of its parent group rows."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Using the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column, now apply a filter for the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"38"}]},{"type":"text","value":". Note that as the aggregated value of the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States"}]},{"type":"text","value":" group row matches the filter, all of its child and leaf-level rows as shown. Specifically, note that both "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States-Swimming"}]},{"type":"text","value":" and "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States-Gymnastics"}]},{"type":"text","value":" row groups are displayed under the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States"}]},{"type":"text","value":" row group."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Using the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column, now apply a filter for the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"34"}]},{"type":"text","value":". Note that as the aggregated value of the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States-Swimming"}]},{"type":"text","value":" group row matches the filter, the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States-Swimming"}]},{"type":"text","value":" group row and all its leaf-level rows are shown. However, unlike the previous filtering scenario, the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States-Gymnastics"}]},{"type":"text","value":" group row is not displayed any more, because the filter match is the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States-Swimming"}]},{"type":"text","value":" group row only."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Group and Leaf Aggregate Filtering","name":"agg-filtering-all","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"rowgrouping\", \"menu\", \"setfilter\"] }"},"children":[]}]},{"type":"element","tagName":"div","properties":{"className":["custom-block","note"]},"children":[{"type":"element","tagName":"div","properties":{"className":["custom-block-body"]},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Take note of the following while using "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAggFiltering"}]},{"type":"text","value":":"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/filter-set/"},"children":[{"type":"text","value":"Set Filters"}]},{"type":"text","value":" are not fully supported in conjunction with this feature. Only leaf values will be displayed in the Filter List."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"When "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAggFiltering"}]},{"type":"text","value":" is enabled, "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation-filtering/#suppressing-aggregation-updates-when-filtering"},"children":[{"type":"text","value":"Suppressing Filtered Aggregation"}]},{"type":"text","value":" is enabled by default."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If Tree Data mode is enabled, the behaviour of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAggFiltering"}]},{"type":"text","value":" will be different. See "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/tree-data/#tree-data-filtering"},"children":[{"type":"text","value":"Tree Data Filtering"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]}]}]},{"type":"element","tagName":"h3","properties":{"id":"custom-group-aggregation-filtering","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#custom-group-aggregation-filtering","ariaLabel":"custom group aggregation filtering permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Custom Group Aggregation Filtering"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"As seen above, the default behaviour of "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation-filtering/#filtering-group-aggregations"},"children":[{"type":"text","value":"Filtering Group Aggregations"}]},{"type":"text","value":" is to apply the filter to all row group levels. If you’d like to change this behaviour and apply the filter only to specific group row levels, or specific grouped columns (regardless of the level at which these group columns appear), a callback can be provided to the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAggFiltering"}]},{"type":"text","value":" property."}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"See an example implementation of this callback below."}]},{"type":"element","tagName":"snippet","properties":{},"children":[{"type":"text","value":"\nconst gridOptions = {\n    groupAggFiltering: (params) => !!params.node.group,\n}\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The snippet above demonstrates how the callback can be used to selectively apply filters. In this example, the filter condition is applied to group level rows only. "}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The example below demonstrates this specific scenario."}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Using the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column apply a filter for the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"6"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Note that no rows are displayed despite some leaf rows containing the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"6"}]},{"type":"text","value":" - the row for Natalie Coughlin, for example. This is because the filter is applied to group rows only and there are no group rows with value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"6"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Using the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"total"}]},{"type":"text","value":" column now apply a filter for the value "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"38"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Note that the group row "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"United States"}]},{"type":"text","value":" matches this filter due to its aggregated value, and also displays all of its child and leaf rows."}]},{"type":"text","value":"\n"}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Group-only Aggregate filtering","name":"agg-filtering-group","type":"generated","options":"{ \"enterprise\": true, \"modules\": [\"clientside\", \"rowgrouping\", \"menu\", \"setfilter\"] }"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The properties of the "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/row-object/"},"children":[{"type":"text","value":"Row Node"}]},{"type":"text","value":" provided by the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAggFiltering"}]},{"type":"text","value":" callback parameters can be used to further customise row group filtering behaviour."}]},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"api-documentation","properties":{"source":"resources/reference.json","section":"rowNodeAttributes"},"children":[]}]},{"type":"element","tagName":"h2","properties":{"id":"next-up","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#next-up","ariaLabel":"next up permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","dataPrefix":"fas","dataIcon":"link","className":["svg-inline--fa","fa-link"],"role":"img","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512"},"children":[{"type":"element","tagName":"path","properties":{"fill":"currentColor","d":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"children":[]}]}]},{"type":"text","value":"Next Up"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Continue to the next section to learn about "},{"type":"element","tagName":"a","properties":{"href":"/archive/29.1.0/aggregation-other/"},"children":[{"type":"text","value":"Other Aggregation Topics"}]},{"type":"text","value":"."}]}]},"frontmatter":{"title":"Aggregation - Filtering","version":null,"enterprise":true,"description":null},"headings":[{"id":"default-filtering-with-aggregated-values","depth":2,"value":"Default Filtering with Aggregated Values"},{"id":"suppressing-aggregation-updates-when-filtering","depth":2,"value":"Suppressing Aggregation Updates When Filtering"},{"id":"filtering-group-aggregations","depth":2,"value":"Filtering Group Aggregations"},{"id":"enabling-group-aggregation-filtering","depth":3,"value":"Enabling Group Aggregation Filtering"},{"id":"custom-group-aggregation-filtering","depth":3,"value":"Custom Group Aggregation Filtering"},{"id":"next-up","depth":2,"value":"Next Up"}]}},"pageContext":{"frameworks":["javascript","react","angular","vue"],"framework":"angular","srcPath":"/aggregation-filtering","pageName":"aggregation-filtering"}},
    "staticQueryHashes": ["1766026005","699667431","940729948"]}