{
    "componentChunkName": "component---src-templates-doc-page-jsx",
    "path": "/javascript-data-grid/grouping-unbalanced-groups/",
    "result": {"data":{"markdownRemark":{"htmlAst":{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This section covers Unbalanced Groups - when grouping by rows that can contain "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"null"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"undefined"}]},{"type":"text","value":" group values.  "}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"handling-unbalanced-groups","style":"position:relative;"},"children":[{"type":"text","value":"Handling Unbalanced Groups"},{"type":"element","tagName":"a","properties":{"href":"#handling-unbalanced-groups","ariaLabel":"handling unbalanced groups permalink","className":["docs-header-icon","after"]},"children":[{"type":"element","tagName":"svg","properties":{"id":"icon","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 32 32"},"children":[{"type":"element","tagName":"path","properties":{"d":"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},"children":[]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"By default, unbalanced rows (rows containing "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"null"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"undefined"}]},{"type":"text","value":" or empty values for the column that is being grouped) get grouped together as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"(Blanks)"}]},{"type":"text","value":". To instead have the nodes remain ungrouped, you can enable the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAllowUnbalanced"}]},{"type":"text","value":" grid option. We refer to this scenario as "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Unbalanced Groups"}]},{"type":"text","value":" in that there is a mix of groups and rows as siblings."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The following example demonstrates:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"groupAllowUnbalanced"}]},{"type":"text","value":" grid option has been set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"true"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Data is grouped by column 'State'. Rows are either grouped by state 'New York', 'California' or not grouped."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Removing the grouping shows that the non grouped rows have no 'State' value."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Unbalanced Groups","name":"unbalanced-groups","type":"mixed","options":"{ \"enterprise\": true, \"exampleHeight\": 570, \"modules\": [\"clientside\", \"rowgrouping\"] }"},"children":[]}]},{"type":"text","value":"\n"},{"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":"The unbalanced group feature is not supported when using the Server SideRow Model (SSRM)"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"balanced-groups","style":"position:relative;"},"children":[{"type":"text","value":"Balanced Groups"},{"type":"element","tagName":"a","properties":{"href":"#balanced-groups","ariaLabel":"balanced groups permalink","className":["docs-header-icon","after"]},"children":[{"type":"element","tagName":"svg","properties":{"id":"icon","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 32 32"},"children":[{"type":"element","tagName":"path","properties":{"d":"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"},"children":[]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When not using unbalanced groups, the grid will, by default, create a (Blanks) group and populate it with any rows without a valid group value. The following example demonstrates this default behaviour:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{},"children":[{"type":"element","tagName":"grid-example","properties":{"title":"Balanced Groups","name":"balanced-groups","type":"mixed","options":"{ \"enterprise\": true, \"exampleHeight\": 570, \"modules\": [\"clientside\", \"rowgrouping\"] }"},"children":[]}]}],"data":{"quirksMode":false}},"frontmatter":{"title":"Row Grouping - Unbalanced Groups","version":null,"enterprise":true,"sideMenu":null,"description":null},"headings":[{"id":"handling-unbalanced-groups","depth":2,"value":"Handling Unbalanced Groups"},{"id":"balanced-groups","depth":2,"value":"Balanced Groups"}]}},"pageContext":{"frameworks":["javascript","react","angular","vue"],"framework":"javascript","srcPath":"/grouping-unbalanced-groups","pageName":"grouping-unbalanced-groups"}},
    "staticQueryHashes": ["1766026005","699667431","940729948"]}