Skip to content

groupPaging and groupHeaderColumnTemplate cause an error in the Grid #6480

@StoyanGoranov

Description

@StoyanGoranov

Bug report

The DataSource's property groupPaging: true prevents the Grid's group from expanding if it has a defined groupHeaderColumnTemplate.

Reproduction of the problem

  1. Open this Dojo
  2. Note the rows are not rendered
  3. Comment out the groupPaging:true configuration and the rows will be rendered as expected.

Also reproducible in the Core wrapper where an error is thrown: kendo.all.js:8743 Uncaught TypeError: Cannot read property 'hasSubgroups' of undefined

Additional clarification on the item - when using Kendo UI for jQuery the rows are not rendered and no error is thrown as seen in the dojo. When using the HTML wrappers the behavior is the same - rows are not rendered, but trying to expand/collapse a row throws a JS error - example:

VM1148 kendo.all.min.js:10 Uncaught TypeError: Cannot read properties of undefined (reading 'hasSubgroups')
    at init.groupCount (VM1148 kendo.all.min.js:10:69661)
    at init._calculateGroupsTotal (VM1148 kendo.all.min.js:10:69506)
    at init.collapseGroup (VM1148 kendo.all.min.js:10:1728998)
    at t._groupableClickHandler.t._groupableClickHandler (VM1148 kendo.all.min.js:10:1645626)
    at HTMLTableElement.dispatch (VM1147 jquery.min.js:3:12445)
    at r.handle (VM1147 jquery.min.js:3:9174)

Current behavior

groupPaging is not compatible with the groupHeaderColumnTemplate

Expected/desired behavior

groupPaging and the groupHeaderColumnTemplate should be compatible

Environment

  • Kendo UI version: 2021.2.616

  • Browser: [all]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions